diff --git a/DM_Weight/App.config b/DM_Weight/App.config
index 27b072d..e4ba36b 100644
--- a/DM_Weight/App.config
+++ b/DM_Weight/App.config
@@ -37,7 +37,7 @@
-
+
diff --git a/DM_Weight/Views/HomeWindow.xaml.cs b/DM_Weight/Views/HomeWindow.xaml.cs
index 265a17a..99eaa62 100644
--- a/DM_Weight/Views/HomeWindow.xaml.cs
+++ b/DM_Weight/Views/HomeWindow.xaml.cs
@@ -28,7 +28,7 @@ namespace DM_Weight.Views
public partial class HomeWindow : UserControl
{
int autoExit = Convert.ToInt32(ConfigurationManager.AppSettings["autoExit"] ?? "0");
- System.Timers.Timer idleTimer;
+ System.Timers.Timer idleTimer;//= new System.Timers.Timer(60000);
IEventAggregator _eventAggregator;
public HomeWindow(IEventAggregator eventAggregator)
{
@@ -57,6 +57,7 @@ namespace DM_Weight.Views
//logger.Info($"进入自动退出定时方法{allTrue}");
if (allTrue)
{
+ idleTimer.Stop();
//无人操作,自动退出
_eventAggregator.GetEvent().Publish();
}