mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-29 19:53:47 +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 = [];
|
||||
|
||||
@@ -791,6 +791,17 @@
|
||||
<el-switch v-model="openVRAlways"></el-switch>
|
||||
</div>
|
||||
</div>
|
||||
<div style="margin-top:30px">
|
||||
<span style="font-weight:bold">Window</span>
|
||||
<div style="font-size:12px;margin-top:5px">
|
||||
<span style="display:inline-block;min-width:150px">Start as Minimized State</span>
|
||||
<el-switch v-model="isStartAsMinimizedState"></el-switch>
|
||||
</div>
|
||||
<div style="font-size:12px;margin-top:5px">
|
||||
<span style="display:inline-block;min-width:150px">Close to Tray</span>
|
||||
<el-switch v-model="isCloseToTray"></el-switch>
|
||||
</div>
|
||||
</div>
|
||||
<div style="margin-top:45px;border-top:1px solid #eee;padding-top:30px">
|
||||
<span style="font-weight:bold">Legal Notice</span>
|
||||
<div style="margin-top:5px;font-size:12px">
|
||||
|
||||
Reference in New Issue
Block a user