remove useless parameter

This commit is contained in:
Paddy Xu
2017-06-18 14:22:42 +03:00
parent 7b94a07e14
commit 67c1e1f689
+3 -3
View File
@@ -173,7 +173,7 @@ namespace QuickLook
}
}
internal bool InvokeViewer(string path = null, bool topMost = true, bool closeIfSame = false)
internal bool InvokeViewer(string path = null, bool closeIfSame = false)
{
if(closeIfSame)
if (_currentMainWindow.Visibility == Visibility.Visible && path == _path)
@@ -194,12 +194,12 @@ namespace QuickLook
var matchedPlugin = PluginManager.GetInstance().FindMatch(_path);
BeginShowNewWindow(matchedPlugin, topMost);
BeginShowNewWindow(matchedPlugin);
return true;
}
private void BeginShowNewWindow(IViewer matchedPlugin, bool topMost = true)
private void BeginShowNewWindow(IViewer matchedPlugin)
{
_currentMainWindow.UnloadPlugin();