fixed crashing
This commit is contained in:
parent
2e34ea6b86
commit
97b0b9e071
2 changed files with 2 additions and 2 deletions
|
@ -15,7 +15,7 @@ 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 = "2.7.7";
|
public static string version = "2.7.8";
|
||||||
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://www.weexnes.com:5169/";
|
||||||
|
|
|
@ -86,7 +86,7 @@ namespace WeeXnes.MVVM.View
|
||||||
{
|
{
|
||||||
KeyItem newkey = new KeyItem(Textbox_Name.Text, Textbox_Value.Text);
|
KeyItem newkey = new KeyItem(Textbox_Name.Text, Textbox_Value.Text);
|
||||||
KeyManagerLib.KeyList.Add(newkey);
|
KeyManagerLib.KeyList.Add(newkey);
|
||||||
string filename = Globals.settings_KeyManagerItemsPath + "\\" + Guid.NewGuid().ToString() + ".wx";
|
string filename = Globals.settings_KeyManagerItemsPath.Value + "\\" + Guid.NewGuid().ToString() + ".wx";
|
||||||
string[] filecontent = new string[] { "##WXfile##", newkey.name, EncryptionLib.EncryptorLibary.encrypt(Globals.encryptionKey, newkey.value) };
|
string[] filecontent = new string[] { "##WXfile##", newkey.name, EncryptionLib.EncryptorLibary.encrypt(Globals.encryptionKey, newkey.value) };
|
||||||
/*
|
/*
|
||||||
INIFile newini = new INIFile(filename, true);
|
INIFile newini = new INIFile(filename, true);
|
||||||
|
|
Loading…
Add table
Reference in a new issue