mirror of
https://github.com/QL-Win/QuickLook.git
synced 2025-12-24 02:00:55 +08:00
reformat
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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">
|
||||
|
||||
@@ -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>
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<packages>
|
||||
<package id="Newtonsoft.Json" version="10.0.3" targetFramework="net462" />
|
||||
</packages>
|
||||
Reference in New Issue
Block a user