This commit is contained in:
Paddy Xu
2017-11-23 22:21:58 +02:00
parent df0ba78298
commit d481bcdceb
5 changed files with 12 additions and 9 deletions

View File

@@ -80,8 +80,8 @@ namespace QuickLook.Helpers
matrix = src.CompositionTarget.TransformToDevice;
}
pixelX = (int)Math.Round((matrix.M11 * unitX));
pixelY = (int)Math.Round((matrix.M22 * unitY));
pixelX = (int) Math.Round(matrix.M11 * unitX);
pixelY = (int) Math.Round(matrix.M22 * unitY);
}
internal static bool IsForegroundWindowBelongToSelf()
@@ -90,7 +90,7 @@ namespace QuickLook.Helpers
if (hwnd == IntPtr.Zero)
return false;
User32.GetWindowThreadProcessId(hwnd, out uint procId);
User32.GetWindowThreadProcessId(hwnd, out var procId);
return procId == Process.GetCurrentProcess().Id;
}
@@ -149,4 +149,4 @@ namespace QuickLook.Helpers
}
}
}
}
}

View File

@@ -1,5 +1,7 @@
<?xml version='1.0' encoding='utf-8'?>
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="QuickLook.Properties" GeneratedClassName="Settings">
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)"
GeneratedClassNamespace="QuickLook.Properties" GeneratedClassName="Settings">
<Profiles />
<Settings>
<Setting Name="Upgraded" Type="System.Boolean" Scope="User">

View File

@@ -139,7 +139,7 @@
<InfoPanel_Files>{0} arquivos</InfoPanel_Files>
<InfoPanel_FolderAndFile>({0} e {1})</InfoPanel_FolderAndFile>
</pt-BR>
<nl-NL>
<nl-NL>
<UI_FontFamily>Segoe UI</UI_FontFamily>
<APP_START>QuickLook draait op de achtergrond.</APP_START>
<APP_SECOND>QuickLook draait al op de achtergrond.</APP_SECOND>
@@ -185,4 +185,4 @@
<InfoPanel_Files>{0} file</InfoPanel_Files>
<InfoPanel_FolderAndFile>({0} e {1})</InfoPanel_FolderAndFile>
</it>
</Translations>
</Translations>

View File

@@ -28,9 +28,9 @@ namespace QuickLook
internal class ViewWindowManager : IDisposable
{
private static ViewWindowManager _instance;
private ViewerWindow _viewerWindow;
private string _invokedPath = string.Empty;
private ViewerWindow _viewerWindow;
internal ViewWindowManager()
{
@@ -133,7 +133,7 @@ namespace QuickLook
private void BeginShowNewWindow(string path, IViewer matchedPlugin)
{
_viewerWindow.UnloadPlugin();
_viewerWindow.BeginShow(matchedPlugin, path, CurrentPluginFailed);
}

View File

@@ -1,4 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Newtonsoft.Json" version="10.0.3" targetFramework="net462" />
</packages>