更新设置加载位置
This commit is contained in:
1 parent
5003ea93f8
commit
f7c1d7967b
2 files changed
+7
-4
No files matched your search
@@ -35,9 +35,7 @@ public partial class SettingsView : Window
|
||||
}
|
||||
private void SettingsView_Loaded(object sender, RoutedEventArgs e)
|
||||
{
|
||||
var setting = NaiBa.Util.Helper.ConfigHelper.LoadConfig<SettingConfig>(SettingViewModel.SettingFileName);
|
||||
if (setting == null) setting = new SettingConfig();
|
||||
vm.Assign(setting);
|
||||
vm.Assign(BaseClass.Setting);
|
||||
}
|
||||
private void SettingsView_Closed(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using AllBase;
|
||||
using _29WxOrderWpf.ViewModels;
|
||||
using AllBase;
|
||||
using AllBase.DouYinModel.Param.ConfigManage;
|
||||
using AllBase.Helper;
|
||||
using AllBase.Model.Config;
|
||||
@@ -34,6 +35,10 @@ namespace _29WxOrderWpf
|
||||
if (GlobalConfig.AutoBuyConfig == null)
|
||||
GlobalConfig.AutoBuyConfig = new AutoBuyConfig() { AlipayPassword = alipayPassword, IsLimitMinProfit = false, MinProfit = 0 };
|
||||
|
||||
|
||||
BaseClass.Setting = NaiBa.Util.Helper.ConfigHelper.LoadConfig<SettingConfig>(SettingViewModel.SettingFileName);
|
||||
if (BaseClass.Setting==null) BaseClass.Setting = new SettingConfig();
|
||||
|
||||
new WxOrder.Framework.Startup();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user