mirror of
https://github.com/QL-Win/QuickLook.git
synced 2025-09-10 09:19:06 +00:00
Test: use new window each time (some people report a slowness... but I can't reproduce)
This commit is contained in:
@@ -26,7 +26,7 @@ namespace QuickLook.Controls
|
|||||||
{
|
{
|
||||||
public MainWindowBase()
|
public MainWindowBase()
|
||||||
{
|
{
|
||||||
WindowStyle = WindowStyle.None;
|
//WindowStyle = WindowStyle.None;
|
||||||
|
|
||||||
SourceInitialized += SourceInitializedHandler;
|
SourceInitialized += SourceInitializedHandler;
|
||||||
}
|
}
|
||||||
|
@@ -267,6 +267,8 @@ namespace QuickLook
|
|||||||
Hide();
|
Hide();
|
||||||
//Dispatcher.BeginInvoke(new Action(Hide), DispatcherPriority.ApplicationIdle);
|
//Dispatcher.BeginInvoke(new Action(Hide), DispatcherPriority.ApplicationIdle);
|
||||||
|
|
||||||
|
ViewWindowManager.GetInstance().ForgetCurrentWindow();
|
||||||
|
|
||||||
ProcessHelper.PerformAggressiveGC();
|
ProcessHelper.PerformAggressiveGC();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -12,7 +12,7 @@
|
|||||||
d:DesignWidth="624" d:DesignHeight="700"
|
d:DesignWidth="624" d:DesignHeight="700"
|
||||||
MinWidth="400" MinHeight="200"
|
MinWidth="400" MinHeight="200"
|
||||||
WindowStartupLocation="CenterScreen"
|
WindowStartupLocation="CenterScreen"
|
||||||
Focusable="False" WindowStyle="None"
|
Focusable="False"
|
||||||
Background="{DynamicResource CaptionBackground}"
|
Background="{DynamicResource CaptionBackground}"
|
||||||
ShowActivated="False" ShowInTaskbar="False">
|
ShowActivated="False" ShowInTaskbar="False">
|
||||||
<controls:MainWindowBase.Resources>
|
<controls:MainWindowBase.Resources>
|
||||||
|
Reference in New Issue
Block a user