small improvement
This commit is contained in:
parent
ee4aebd050
commit
4d8b21756f
2 changed files with 10 additions and 7 deletions
|
@ -16,10 +16,10 @@ namespace WeeXnes.Core
|
|||
public static string encryptionKey = "8zf5#RdyQ]$4x4_";
|
||||
public static string AppDataPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "WeeXnes");
|
||||
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_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_osxStyleControlls = new UpdateVar<bool>();
|
||||
|
@ -54,10 +54,6 @@ namespace WeeXnes.Core
|
|||
loadSettings();
|
||||
setEventListeners();
|
||||
}
|
||||
public static void refresh()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private static void loadSettings()
|
||||
{
|
||||
|
|
|
@ -125,7 +125,14 @@ namespace WeeXnes
|
|||
|
||||
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)
|
||||
|
|
Loading…
Add table
Reference in a new issue