mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-24 17:23:50 +02:00
add tray menu and remember window state (closes #34)
This commit is contained in:
@@ -5304,6 +5304,14 @@ CefSharp.BindObjectAsync(
|
||||
VRCXStorage.SetBool('isDarkMode', this.isDarkMode);
|
||||
$appDarkStyle.disabled = this.isDarkMode === false;
|
||||
};
|
||||
$app.data.isStartAsMinimizedState = VRCXStorage.GetBool('VRCX_StartAsMinimizedState');
|
||||
$app.data.isCloseToTray = VRCXStorage.GetBool('VRCX_CloseToTray');
|
||||
var saveVRCXWindowOption = function () {
|
||||
VRCXStorage.SetBool('VRCX_StartAsMinimizedState', this.isStartAsMinimizedState);
|
||||
VRCXStorage.SetBool('VRCX_CloseToTray', this.isCloseToTray);
|
||||
};
|
||||
$app.watch.isStartAsMinimizedState = saveVRCXWindowOption;
|
||||
$app.watch.isCloseToTray = saveVRCXWindowOption;
|
||||
|
||||
API.$on('LOGIN', function () {
|
||||
$app.currentUserTreeData = [];
|
||||
|
||||
Reference in New Issue
Block a user