small improvement

This commit is contained in:
WeeXnes 2022-07-28 22:51:34 +02:00
parent ee4aebd050
commit 4d8b21756f
2 changed files with 10 additions and 7 deletions

View file

@ -16,10 +16,10 @@ namespace WeeXnes.Core
public static string encryptionKey = "8zf5#RdyQ]$4x4_"; public static string encryptionKey = "8zf5#RdyQ]$4x4_";
public static string AppDataPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "WeeXnes"); public static string AppDataPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "WeeXnes");
public static string SettingsFileName = "settings.ini"; public static string SettingsFileName = "settings.ini";
public static string version = "3.6.1"; public static string version = "3.6.2";
public static bool info_isRpcRunning = false; public static bool info_isRpcRunning = false;
public static bool info_RpcAutoStart; public static bool info_RpcAutoStart;
public static string apiUrl = "http://www.weexnes.com:5169/"; public static string apiUrl = "http://weexnes.com:5169/";
public static UpdateVar<bool> settings_alwaysOnTop = new UpdateVar<bool>(); public static UpdateVar<bool> settings_alwaysOnTop = new UpdateVar<bool>();
public static UpdateVar<bool> settings_osxStyleControlls = new UpdateVar<bool>(); public static UpdateVar<bool> settings_osxStyleControlls = new UpdateVar<bool>();
@ -54,10 +54,6 @@ namespace WeeXnes.Core
loadSettings(); loadSettings();
setEventListeners(); setEventListeners();
} }
public static void refresh()
{
}
private static void loadSettings() private static void loadSettings()
{ {

View file

@ -125,7 +125,14 @@ namespace WeeXnes
private void CloseBtn_Click(object sender, RoutedEventArgs e) private void CloseBtn_Click(object sender, RoutedEventArgs e)
{ {
this.Close(); if (Globals.info_isRpcRunning)
{
WindowState = WindowState.Minimized;
}
else
{
this.Close();
}
} }
private void MinimizeBtn_Click(object sender, RoutedEventArgs e) private void MinimizeBtn_Click(object sender, RoutedEventArgs e)