mirror of
https://github.com/QL-Win/QuickLook.git
synced 2026-05-07 02:00:21 +08:00
reformat
This commit is contained in:
@@ -80,8 +80,8 @@ namespace QuickLook.Helpers
|
|||||||
matrix = src.CompositionTarget.TransformToDevice;
|
matrix = src.CompositionTarget.TransformToDevice;
|
||||||
}
|
}
|
||||||
|
|
||||||
pixelX = (int)Math.Round((matrix.M11 * unitX));
|
pixelX = (int) Math.Round(matrix.M11 * unitX);
|
||||||
pixelY = (int)Math.Round((matrix.M22 * unitY));
|
pixelY = (int) Math.Round(matrix.M22 * unitY);
|
||||||
}
|
}
|
||||||
|
|
||||||
internal static bool IsForegroundWindowBelongToSelf()
|
internal static bool IsForegroundWindowBelongToSelf()
|
||||||
@@ -90,7 +90,7 @@ namespace QuickLook.Helpers
|
|||||||
if (hwnd == IntPtr.Zero)
|
if (hwnd == IntPtr.Zero)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
User32.GetWindowThreadProcessId(hwnd, out uint procId);
|
User32.GetWindowThreadProcessId(hwnd, out var procId);
|
||||||
return procId == Process.GetCurrentProcess().Id;
|
return procId == Process.GetCurrentProcess().Id;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -149,4 +149,4 @@ namespace QuickLook.Helpers
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,5 +1,7 @@
|
|||||||
<?xml version='1.0' encoding='utf-8'?>
|
<?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 />
|
<Profiles />
|
||||||
<Settings>
|
<Settings>
|
||||||
<Setting Name="Upgraded" Type="System.Boolean" Scope="User">
|
<Setting Name="Upgraded" Type="System.Boolean" Scope="User">
|
||||||
|
|||||||
@@ -139,7 +139,7 @@
|
|||||||
<InfoPanel_Files>{0} arquivos</InfoPanel_Files>
|
<InfoPanel_Files>{0} arquivos</InfoPanel_Files>
|
||||||
<InfoPanel_FolderAndFile>({0} e {1})</InfoPanel_FolderAndFile>
|
<InfoPanel_FolderAndFile>({0} e {1})</InfoPanel_FolderAndFile>
|
||||||
</pt-BR>
|
</pt-BR>
|
||||||
<nl-NL>
|
<nl-NL>
|
||||||
<UI_FontFamily>Segoe UI</UI_FontFamily>
|
<UI_FontFamily>Segoe UI</UI_FontFamily>
|
||||||
<APP_START>QuickLook draait op de achtergrond.</APP_START>
|
<APP_START>QuickLook draait op de achtergrond.</APP_START>
|
||||||
<APP_SECOND>QuickLook draait al op de achtergrond.</APP_SECOND>
|
<APP_SECOND>QuickLook draait al op de achtergrond.</APP_SECOND>
|
||||||
@@ -185,4 +185,4 @@
|
|||||||
<InfoPanel_Files>{0} file</InfoPanel_Files>
|
<InfoPanel_Files>{0} file</InfoPanel_Files>
|
||||||
<InfoPanel_FolderAndFile>({0} e {1})</InfoPanel_FolderAndFile>
|
<InfoPanel_FolderAndFile>({0} e {1})</InfoPanel_FolderAndFile>
|
||||||
</it>
|
</it>
|
||||||
</Translations>
|
</Translations>
|
||||||
@@ -28,9 +28,9 @@ namespace QuickLook
|
|||||||
internal class ViewWindowManager : IDisposable
|
internal class ViewWindowManager : IDisposable
|
||||||
{
|
{
|
||||||
private static ViewWindowManager _instance;
|
private static ViewWindowManager _instance;
|
||||||
private ViewerWindow _viewerWindow;
|
|
||||||
|
|
||||||
private string _invokedPath = string.Empty;
|
private string _invokedPath = string.Empty;
|
||||||
|
private ViewerWindow _viewerWindow;
|
||||||
|
|
||||||
internal ViewWindowManager()
|
internal ViewWindowManager()
|
||||||
{
|
{
|
||||||
@@ -133,7 +133,7 @@ namespace QuickLook
|
|||||||
private void BeginShowNewWindow(string path, IViewer matchedPlugin)
|
private void BeginShowNewWindow(string path, IViewer matchedPlugin)
|
||||||
{
|
{
|
||||||
_viewerWindow.UnloadPlugin();
|
_viewerWindow.UnloadPlugin();
|
||||||
|
|
||||||
_viewerWindow.BeginShow(matchedPlugin, path, CurrentPluginFailed);
|
_viewerWindow.BeginShow(matchedPlugin, path, CurrentPluginFailed);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
|
||||||
<packages>
|
<packages>
|
||||||
<package id="Newtonsoft.Json" version="10.0.3" targetFramework="net462" />
|
<package id="Newtonsoft.Json" version="10.0.3" targetFramework="net462" />
|
||||||
</packages>
|
</packages>
|
||||||
Reference in New Issue
Block a user