mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-08 20:27:36 +02:00
Refactoring DelayInvoke
In MainWindow.xaml.cs, the reference of originQuery, lastQuery and tbQuery.Text are same, so remove originQuery is fine.
This commit is contained in:
@@ -71,11 +71,11 @@ namespace Wox {
|
||||
Show();
|
||||
|
||||
Dispatcher.DelayInvoke("ShowMsg",
|
||||
o => {
|
||||
if (!closing) {
|
||||
closing = true;
|
||||
Dispatcher.Invoke(new Action(fadeOutStoryboard.Begin));
|
||||
}
|
||||
() => {
|
||||
if (!closing) {
|
||||
closing = true;
|
||||
Dispatcher.Invoke(new Action(fadeOutStoryboard.Begin));
|
||||
}
|
||||
}, TimeSpan.FromSeconds(3));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user