private void HideConfiguration()
 {
     if (Settings.MinimizeToTray)
     {
         if (_configurationWindow.IsVisible)
         {
             _configurationWindow.Hide();
         }
     }
     else
     {
         _configurationWindow.WindowState = WindowState.Minimized;
     }
 }
예제 #2
0
 private void HideConfiguration()
 {
     if (AppSettings.EnableDiscordRPC == true)
     {
         if (client.IsDisposed == false)
         {
             client.Dispose();
         }
     }
     if (AppSettings.MinimizeToTray)
     {
         if (_configurationWindow.IsVisible)
         {
             _configurationWindow.Hide();
         }
     }
     else
     {
         _configurationWindow.WindowState = WindowState.Minimized;
     }
 }
 void OnDisabl2e()
 {
     Log.Info("OnDisabl2e");
     m_window.Hide();
 }