From f3ce6975c9f465c772cf0c16fb1cc2e76268eb5c Mon Sep 17 00:00:00 2001
From: Jack251970 <1160210343@qq.com>
Date: Tue, 17 Jun 2025 13:28:04 +0800
Subject: [PATCH 01/13] Fix tab sequence
---
Flow.Launcher/CustomShortcutSetting.xaml | 26 +++++++++++++-----------
1 file changed, 14 insertions(+), 12 deletions(-)
diff --git a/Flow.Launcher/CustomShortcutSetting.xaml b/Flow.Launcher/CustomShortcutSetting.xaml
index d8623753f..5185354e7 100644
--- a/Flow.Launcher/CustomShortcutSetting.xaml
+++ b/Flow.Launcher/CustomShortcutSetting.xaml
@@ -118,24 +118,26 @@
FontSize="14"
Text="{DynamicResource customShortcutExpansion}" />
-
-
+
+
+
+
+
-
+
+
From 4dd783360389b78e9c046b04a1d77aea023687e7 Mon Sep 17 00:00:00 2001
From: DB P
Date: Tue, 17 Jun 2025 16:45:44 +0900
Subject: [PATCH 02/13] UI improvements and file/folder selection feature added
- Updated "Name" and "Path" keys and added new keys in en.xaml. - Modified
QuickAccessLinkSettings.xaml: increased Window height and improved layout
using Grid structure. - Added new UI elements: implemented radio buttons for
file/folder selection. - Added and initialized QuickAccessLinks property in
QuickAccessLinkSettings.xaml.cs. - Added file selection dialog in
SelectPath_OnClick method. - Added IsFileSelected and IsFolderSelected
properties to implement selection functionality.
---
.../Languages/en.xaml | 7 +-
.../Views/QuickAccessLinkSettings.xaml | 135 +++++++++++-------
.../Views/QuickAccessLinkSettings.xaml.cs | 42 +++++-
3 files changed, 126 insertions(+), 58 deletions(-)
diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/Languages/en.xaml b/Plugins/Flow.Launcher.Plugin.Explorer/Languages/en.xaml
index 7d0a553a4..2e0f6a67d 100644
--- a/Plugins/Flow.Launcher.Plugin.Explorer/Languages/en.xaml
+++ b/Plugins/Flow.Launcher.Plugin.Explorer/Languages/en.xaml
@@ -98,8 +98,11 @@
Delete
Permanently delete current file
Permanently delete current folder
- Path:
- Name:
+ Name
+ Type
+ Path
+ File
+ Folder
Delete the selected
Run as different user
Run the selected using a different user account
diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/Views/QuickAccessLinkSettings.xaml b/Plugins/Flow.Launcher.Plugin.Explorer/Views/QuickAccessLinkSettings.xaml
index e9ba53618..f35633bc5 100644
--- a/Plugins/Flow.Launcher.Plugin.Explorer/Views/QuickAccessLinkSettings.xaml
+++ b/Plugins/Flow.Launcher.Plugin.Explorer/Views/QuickAccessLinkSettings.xaml
@@ -1,22 +1,23 @@
-
-
-
-
+
+
+
+
@@ -58,55 +59,91 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
+
+
+
+
+
+
+
+
-
-
+ IsReadOnly="True"
+ Text="{Binding SelectedPath, Mode=TwoWay}" />
-
-
+ Click="SelectPath_OnClick"
+ Content="{DynamicResource select}" />
+
+
\ No newline at end of file
diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/Views/QuickAccessLinkSettings.xaml.cs b/Plugins/Flow.Launcher.Plugin.Explorer/Views/QuickAccessLinkSettings.xaml.cs
index 36a00e9e5..1e52ea81e 100644
--- a/Plugins/Flow.Launcher.Plugin.Explorer/Views/QuickAccessLinkSettings.xaml.cs
+++ b/Plugins/Flow.Launcher.Plugin.Explorer/Views/QuickAccessLinkSettings.xaml.cs
@@ -49,9 +49,9 @@ public partial class QuickAccessLinkSettings : INotifyPropertyChanged
private bool IsEdit { get; }
private AccessLink SelectedAccessLink { get; }
-
+
public ObservableCollection QuickAccessLinks { get; }
-
+
public QuickAccessLinkSettings(ObservableCollection quickAccessLinks)
{
IsEdit = false;
@@ -96,7 +96,7 @@ public partial class QuickAccessLinkSettings : INotifyPropertyChanged
}
// If editing, update the existing link
- if (IsEdit)
+ if (IsEdit)
{
if (SelectedAccessLink == null) return;
@@ -130,12 +130,30 @@ public partial class QuickAccessLinkSettings : INotifyPropertyChanged
private void SelectPath_OnClick(object commandParameter, RoutedEventArgs e)
{
- var folderBrowserDialog = new FolderBrowserDialog();
+ // Open file or folder selection dialog based on the selected radio button
+ if (IsFileSelected)
+ {
+ var openFileDialog = new Microsoft.Win32.OpenFileDialog
+ {
+ Multiselect = false,
+ CheckFileExists = true,
+ CheckPathExists = true
+ };
- if (folderBrowserDialog.ShowDialog() != System.Windows.Forms.DialogResult.OK)
- return;
+ if (openFileDialog.ShowDialog() == true)
+ {
+ SelectedPath = openFileDialog.FileName;
+ }
+ }
+ else // Folder selection
+ {
+ var folderBrowserDialog = new FolderBrowserDialog();
- SelectedPath = folderBrowserDialog.SelectedPath;
+ if (folderBrowserDialog.ShowDialog() == System.Windows.Forms.DialogResult.OK)
+ {
+ SelectedPath = folderBrowserDialog.SelectedPath;
+ }
+ }
}
public event PropertyChangedEventHandler PropertyChanged;
@@ -144,4 +162,14 @@ public partial class QuickAccessLinkSettings : INotifyPropertyChanged
{
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
}
+
+ public bool IsFileSelected { get; set; }
+ public bool IsFolderSelected { get; set; }
+
+ public QuickAccessLinkSettings()
+ {
+ IsFolderSelected = true; // Default to folder selection
+ InitializeComponent();
+ DataContext = this;
+ }
}
From 52da1c97d998e5901e3699bc11a40d753da2de5f Mon Sep 17 00:00:00 2001
From: DB P
Date: Tue, 17 Jun 2025 16:50:42 +0900
Subject: [PATCH 03/13] Adjust Button Size
---
.../Views/QuickAccessLinkSettings.xaml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/Views/QuickAccessLinkSettings.xaml b/Plugins/Flow.Launcher.Plugin.Explorer/Views/QuickAccessLinkSettings.xaml
index f35633bc5..e977a72c2 100644
--- a/Plugins/Flow.Launcher.Plugin.Explorer/Views/QuickAccessLinkSettings.xaml
+++ b/Plugins/Flow.Launcher.Plugin.Explorer/Views/QuickAccessLinkSettings.xaml
@@ -155,14 +155,14 @@