From 0edd9eafabc2447fa54f08f05078dcd4e5452076 Mon Sep 17 00:00:00 2001 From: Yusyuriv Date: Sat, 8 Jun 2024 10:16:33 +0600 Subject: [PATCH] Explorer plugin native context menu: turn it off by default --- Plugins/Flow.Launcher.Plugin.Explorer/ContextMenu.cs | 2 +- Plugins/Flow.Launcher.Plugin.Explorer/Settings.cs | 2 +- .../ViewModels/SettingsViewModel.cs | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/ContextMenu.cs b/Plugins/Flow.Launcher.Plugin.Explorer/ContextMenu.cs index 6a3cdf332..d63c1dccf 100644 --- a/Plugins/Flow.Launcher.Plugin.Explorer/ContextMenu.cs +++ b/Plugins/Flow.Launcher.Plugin.Explorer/ContextMenu.cs @@ -280,7 +280,7 @@ namespace Flow.Launcher.Plugin.Explorer IcoPath = Constants.DifferentUserIconImagePath }); - if (record.Type is ResultType.File or ResultType.Folder && Settings.ShowWindowsContextMenu) + if (record.Type is ResultType.File or ResultType.Folder && Settings.ShowInlinedWindowsContextMenu) { var filters = Settings .WindowsContextMenuIgnoredItems diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/Settings.cs b/Plugins/Flow.Launcher.Plugin.Explorer/Settings.cs index 81a8332da..627765ca1 100644 --- a/Plugins/Flow.Launcher.Plugin.Explorer/Settings.cs +++ b/Plugins/Flow.Launcher.Plugin.Explorer/Settings.cs @@ -28,7 +28,7 @@ namespace Flow.Launcher.Plugin.Explorer public bool UseLocationAsWorkingDir { get; set; } = false; - public bool ShowWindowsContextMenu { get; set; } = true; + public bool ShowInlinedWindowsContextMenu { get; set; } = false; public string WindowsContextMenuIgnoredItems { get; set; } = string.Empty; diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/ViewModels/SettingsViewModel.cs b/Plugins/Flow.Launcher.Plugin.Explorer/ViewModels/SettingsViewModel.cs index f592629af..3fc721840 100644 --- a/Plugins/Flow.Launcher.Plugin.Explorer/ViewModels/SettingsViewModel.cs +++ b/Plugins/Flow.Launcher.Plugin.Explorer/ViewModels/SettingsViewModel.cs @@ -106,10 +106,10 @@ namespace Flow.Launcher.Plugin.Explorer.ViewModels public bool ShowWindowsContextMenu { - get => Settings.ShowWindowsContextMenu; + get => Settings.ShowInlinedWindowsContextMenu; set { - Settings.ShowWindowsContextMenu = value; + Settings.ShowInlinedWindowsContextMenu = value; OnPropertyChanged(); } }