mirror of
https://github.com/QL-Win/QuickLook.git
synced 2025-12-11 01:03:32 +08:00
Revert Add Sandbox detection
This commit is contained in:
Submodule QuickLook.Common updated: fac282e3ae...8978dce92c
@@ -43,7 +43,6 @@ public partial class App : Application
|
||||
public static readonly string AppPath = Path.GetDirectoryName(AppFullPath);
|
||||
public static readonly bool Is64Bit = Environment.Is64BitProcess;
|
||||
public static readonly bool IsUWP = ProcessHelper.IsRunningAsUWP();
|
||||
public static readonly bool IsSandBox = !ProcessHelper.IsFullTrust();
|
||||
public static readonly bool IsWin11 = Environment.OSVersion.Version >= new Version(10, 0, 21996);
|
||||
public static readonly bool IsWin10 = !IsWin11 && Environment.OSVersion.Version >= new Version(10, 0);
|
||||
public static readonly bool IsGPUInBlacklist = SystemHelper.IsGPUInBlacklist();
|
||||
|
||||
@@ -44,8 +44,6 @@ internal class TrayIconManager : IDisposable
|
||||
})
|
||||
{ Enabled = !App.IsUWP };
|
||||
|
||||
private readonly string _attr = App.IsUWP ? $" (UWP{(App.IsSandBox ? string.Empty : "-SandBox")})" : string.Empty;
|
||||
|
||||
private TrayIconManager()
|
||||
{
|
||||
_icon = new NotifyIcon
|
||||
@@ -55,7 +53,7 @@ internal class TrayIconManager : IDisposable
|
||||
Icon = GetTrayIconByDPI(),
|
||||
ContextMenu = new ContextMenu(
|
||||
[
|
||||
new MenuItem($"v{Application.ProductVersion}{_attr}") {Enabled = false},
|
||||
new MenuItem($"v{Application.ProductVersion}{(App.IsUWP ? " (UWP)" : string.Empty)}") {Enabled = false},
|
||||
new MenuItem("-"),
|
||||
new MenuItem(TranslationHelper.Get("Icon_CheckUpdate"), (_, _) => Updater.CheckForUpdates()),
|
||||
new MenuItem(TranslationHelper.Get("Icon_GetPlugin"),
|
||||
|
||||
Reference in New Issue
Block a user