mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-07 06:56:04 +02:00
Fix close to tray
This commit is contained in:
+2
-2
@@ -1,4 +1,4 @@
|
|||||||
// Copyright(c) 2019 pypy. All rights reserved.
|
// Copyright(c) 2019 pypy. All rights reserved.
|
||||||
//
|
//
|
||||||
// This work is licensed under the terms of the MIT license.
|
// This work is licensed under the terms of the MIT license.
|
||||||
// For a copy, see <https://opensource.org/licenses/MIT>.
|
// For a copy, see <https://opensource.org/licenses/MIT>.
|
||||||
@@ -132,7 +132,7 @@ namespace VRCX
|
|||||||
private void MainForm_FormClosing(object sender, FormClosingEventArgs e)
|
private void MainForm_FormClosing(object sender, FormClosingEventArgs e)
|
||||||
{
|
{
|
||||||
if (e.CloseReason == CloseReason.UserClosing &&
|
if (e.CloseReason == CloseReason.UserClosing &&
|
||||||
"true".Equals(VRCXStorage.Instance.Get("VRCX_CloseToTray")))
|
"true".Equals(SharedVariable.Instance.Get("config:vrcx_closetotray")))
|
||||||
{
|
{
|
||||||
e.Cancel = true;
|
e.Cancel = true;
|
||||||
Hide();
|
Hide();
|
||||||
|
|||||||
Reference in New Issue
Block a user