[MM-36058][MM-40572] Tray fixes (#1933)

* [MM-36058] Added config migration function, update default tray icon theme to system, allow Windows users to override icon theme

* [MM-40572] Restore minimize to tray option for Windows

* Lint fix

* Test fix

* Oops
This commit is contained in:
Devin Binnie
2022-01-04 15:00:56 -05:00
committed by GitHub
parent 3ecdd3d1c9
commit adf494e944
11 changed files with 94 additions and 6 deletions

View File

@@ -17,6 +17,7 @@ export let appVersionJson = '';
export let certificateStorePath = '';
export let trustedOriginsStoreFile = '';
export let boundsInfoPath = '';
export let migrationInfoPath = '';
export function updatePaths(emit = false) {
userDataPath = app.getPath('userData');
@@ -27,6 +28,7 @@ export function updatePaths(emit = false) {
certificateStorePath = path.resolve(userDataPath, 'certificate.json');
trustedOriginsStoreFile = path.resolve(userDataPath, 'trustedOrigins.json');
boundsInfoPath = path.join(userDataPath, 'bounds-info.json');
migrationInfoPath = path.resolve(userDataPath, 'migration-info.json');
if (emit) {
ipcMain.emit(UPDATE_PATHS);