mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-11 02:43:50 +02:00
Fix start minimized
SharedVariable seems to initialize late, using old method instead
This commit is contained in:
@@ -5638,11 +5638,11 @@ import gameLogService from './service/gamelog.js'
|
||||
$appDarkStyle.disabled = this.isDarkMode === false;
|
||||
};
|
||||
$app.data.isStartAtWindowsStartup = configRepository.getBool('VRCX_StartAtWindowsStartup');
|
||||
$app.data.isStartAsMinimizedState = configRepository.getBool('VRCX_StartAsMinimizedState');
|
||||
$app.data.isStartAsMinimizedState = (VRCXStorage.Get('VRCX_StartAsMinimizedState') === 'true');
|
||||
$app.data.isCloseToTray = configRepository.getBool('VRCX_CloseToTray');
|
||||
var saveVRCXWindowOption = function () {
|
||||
configRepository.setBool('VRCX_StartAtWindowsStartup', this.isStartAtWindowsStartup);
|
||||
configRepository.setBool('VRCX_StartAsMinimizedState', this.isStartAsMinimizedState);
|
||||
VRCXStorage.Set('VRCX_StartAsMinimizedState', this.isStartAsMinimizedState.toString());
|
||||
configRepository.setBool('VRCX_CloseToTray', this.isCloseToTray);
|
||||
AppApi.SetStartup(this.isStartAtWindowsStartup);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user