搜索框隐藏时不再开启线程关闭窗口
This commit is contained in:
@@ -363,16 +363,21 @@ namespace GeekDesk
|
|||||||
|
|
||||||
public static void HideApp()
|
public static void HideApp()
|
||||||
{
|
{
|
||||||
if (RunTimeStatus.SEARCH_BOX_SHOW) mainWindow.HidedSearchBox();
|
if (RunTimeStatus.SEARCH_BOX_SHOW)
|
||||||
new Thread(() =>
|
|
||||||
{
|
{
|
||||||
Thread.Sleep(100);
|
mainWindow.HidedSearchBox();
|
||||||
App.Current.Dispatcher.BeginInvoke(new Action(() =>
|
new Thread(() =>
|
||||||
{
|
{
|
||||||
FadeStoryBoard(0, (int)CommonEnum.WINDOW_ANIMATION_TIME, Visibility.Collapsed);
|
Thread.Sleep(100);
|
||||||
}));
|
App.Current.Dispatcher.BeginInvoke(new Action(() =>
|
||||||
}).Start();
|
{
|
||||||
|
FadeStoryBoard(0, (int)CommonEnum.WINDOW_ANIMATION_TIME, Visibility.Collapsed);
|
||||||
|
}));
|
||||||
|
}).Start();
|
||||||
|
} else
|
||||||
|
{
|
||||||
|
FadeStoryBoard(0, (int)CommonEnum.WINDOW_ANIMATION_TIME, Visibility.Collapsed);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
Reference in New Issue
Block a user