mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-17 13:05:32 +09:00
feat(desktop): self-update appimages in place (#2843)
This commit is contained in:
1 parent
98a42f612b
commit
c4f0b2ece0
20 files changed
+2210
-57
No files matched your search
@@ -11,7 +11,7 @@ import type {
|
||||
TrayActionPayload,
|
||||
TrayRuntimeStatePayload,
|
||||
} from '@electron/common/Types';
|
||||
import {getStableRelaunchOptions} from '@electron/main/LinuxLaunchPath';
|
||||
import {relaunchStableLaunchPath} from '@electron/main/LinuxLaunchPath';
|
||||
import {onLocaleChange, t} from '@electron/main/MainI18n';
|
||||
import {app, type BrowserWindow, clipboard, Menu, nativeImage, Tray} from 'electron';
|
||||
|
||||
@@ -277,7 +277,7 @@ function restartFromTray(): void {
|
||||
trayRestartRequested = true;
|
||||
controller?.setQuitting(true);
|
||||
destroyDesktopTray();
|
||||
app.relaunch(getStableRelaunchOptions());
|
||||
relaunchStableLaunchPath();
|
||||
app.quit();
|
||||
armTrayForcedExit('restart');
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user