Fix tray window sizing #6

Merged
ishan-karmakar merged 2 commits from fix-tray-window-sizing into main 2026-06-01 03:14:58 +00:00
Showing only changes of commit 1b38554df0 - Show all commits
+3 -2
View File
@@ -30,6 +30,7 @@ export class NetBirdClient {
});
}
/// Deprecated???
runElevated(args: string[]): Promise<Omit<CommandResult, 'code'>> {
const quotedExe = this.executablePath.replace(/'/g, "''");
const quotedArgs = args.map(arg => `'${String(arg).replace(/'/g, "''")}'`).join(',');
@@ -67,7 +68,7 @@ export class NetBirdClient {
if (status.ok) return true;
await this.runElevated([
await this.run([
'service',
'install',
'--management-url',
@@ -78,7 +79,7 @@ export class NetBirdClient {
'info'
]);
await this.runElevated(['service', 'start']);
await this.run(['service', 'start']);
for (let index = 0; index < 20; index++) {
const check = await this.status({ timeout: 8000 });