🚨 捕获异常, 取消崩溃通知
This commit is contained in:
@@ -170,7 +170,11 @@ namespace GeekDesk.Control.Other
|
||||
new Thread(() =>
|
||||
{
|
||||
Thread.Sleep(time);
|
||||
try
|
||||
{
|
||||
Dispatcher.Invoke(() =>
|
||||
{
|
||||
try
|
||||
{
|
||||
if (string.IsNullOrEmpty(P1.Password))
|
||||
{
|
||||
@@ -188,7 +192,11 @@ namespace GeekDesk.Control.Other
|
||||
return;
|
||||
}
|
||||
P4.Focus();
|
||||
}
|
||||
catch (Exception ex) { }
|
||||
});
|
||||
}
|
||||
catch (Exception e2) { }
|
||||
}).Start();
|
||||
}
|
||||
|
||||
|
||||
@@ -76,10 +76,14 @@ namespace GeekDesk
|
||||
}
|
||||
|
||||
private void Window_SourceInitialized(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
//禁用窗口最大化
|
||||
WindowUtil.DisableMaxWindow(this);
|
||||
}
|
||||
catch (Exception) { }
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -235,7 +235,7 @@ namespace ShowSeconds
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception) { }
|
||||
catch (Exception e1) { }
|
||||
}));
|
||||
}
|
||||
|
||||
|
||||
@@ -49,7 +49,7 @@ namespace GeekDesk.Task
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception) { }
|
||||
catch (Exception e1) { }
|
||||
//ClearMemory();
|
||||
}));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user