fix: wrong scope for the reconnect button
This commit is contained in:
parent
b9713b1880
commit
30efb68532
1 changed files with 7 additions and 7 deletions
|
@ -52,6 +52,7 @@ export async function activate(context: ExtensionContext) {
|
||||||
if (!config.get('silent')) {
|
if (!config.get('silent')) {
|
||||||
if (error.message.includes('ENOENT')) window.showErrorMessage('No Discord Client detected!');
|
if (error.message.includes('ENOENT')) window.showErrorMessage('No Discord Client detected!');
|
||||||
else window.showErrorMessage(`Couldn't connect to Discord via RPC: ${error.toString()}`);
|
else window.showErrorMessage(`Couldn't connect to Discord via RPC: ${error.toString()}`);
|
||||||
|
}
|
||||||
if (!statusBarIcon) {
|
if (!statusBarIcon) {
|
||||||
statusBarIcon = window.createStatusBarItem(StatusBarAlignment.Left);
|
statusBarIcon = window.createStatusBarItem(StatusBarAlignment.Left);
|
||||||
statusBarIcon.text = '$(plug) Reconnect to Discord';
|
statusBarIcon.text = '$(plug) Reconnect to Discord';
|
||||||
|
@ -60,7 +61,6 @@ export async function activate(context: ExtensionContext) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
const enabler = commands.registerCommand('discord.enable', async () => {
|
const enabler = commands.registerCommand('discord.enable', async () => {
|
||||||
await rpc.dispose();
|
await rpc.dispose();
|
||||||
|
@ -90,4 +90,4 @@ export async function deactivate() {
|
||||||
await rpc.dispose();
|
await rpc.dispose();
|
||||||
}
|
}
|
||||||
|
|
||||||
process.on('unhandledRejection', console.error);
|
process.on('unhandledRejection', err => Logger.log(err));
|
||||||
|
|
Loading…
Reference in a new issue