Skip to content

Commit f262263

Browse files
committed
Add hyperlink to learn more about file manager usage in settings dialog
1 parent aadfde0 commit f262263

File tree

3 files changed

+24
-6
lines changed

3 files changed

+24
-6
lines changed

Flow.Launcher/Languages/en.xaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,7 @@
367367
<!-- FileManager Setting Dialog -->
368368
<system:String x:Key="fileManagerWindow">Select File Manager</system:String>
369369
<system:String x:Key="fileManager_files_btn">Do you use Files?</system:String>
370+
<system:String x:Key="fileManager_learnMore">Learn more</system:String>
370371
<system:String x:Key="fileManager_files_tips">Depending on the version, Files may use either "Files" or "Files-stable" as its path. (This can vary depending on which version you're using.) For more details, see:</system:String>
371372
<system:String x:Key="fileManager_tips">Please specify the file location of the file manager you using and add arguments as required. The &quot;%d&quot; represents the directory path to open for, used by the Arg for Folder field and for commands opening specific directories. The &quot;%f&quot; represents the file path to open for, used by the Arg for File field and for commands opening specific files.</system:String>
372373
<system:String x:Key="fileManager_tips2">For example, if the file manager uses a command such as &quot;totalcmd.exe /A c:\windows&quot; to open the c:\windows directory, the File Manager Path will be totalcmd.exe, and the Arg For Folder will be /A &quot;%d&quot;. Certain file managers like QTTabBar may just require a path to be supplied, in this instance use &quot;%d&quot; as the File Manager Path and leave the rest of the fileds blank.</system:String>

Flow.Launcher/SelectFileManagerWindow.xaml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,19 @@
7373
<TextBlock Margin="0 14 0 0" FontSize="14">
7474
<TextBlock Text="{DynamicResource fileManager_tips2}" TextWrapping="WrapWithOverflow" />
7575
</TextBlock>
76-
<Button
77-
x:Name="btnTips"
78-
Margin="0 14 0 0"
79-
HorizontalAlignment="Left"
80-
Click="btnTips_Click"
81-
Content="{DynamicResource fileManager_files_btn}" />
76+
<StackPanel Margin="0 14 0 0" Orientation="Horizontal">
77+
<Button
78+
x:Name="btnTips"
79+
Margin="0 14 0 0"
80+
HorizontalAlignment="Left"
81+
Click="btnTips_Click"
82+
Content="{DynamicResource fileManager_files_btn}" />
83+
<TextBlock Margin="10 8 0 0" VerticalAlignment="Center">
84+
<Hyperlink NavigateUri="https://www.flowlauncher.com/docs/#/filemanager" RequestNavigate="Hyperlink_RequestNavigate">
85+
<TextBlock FontSize="14" Text="{DynamicResource fileManager_learnMore}" />
86+
</Hyperlink>
87+
</TextBlock>
88+
</StackPanel>
8289
</StackPanel>
8390
<Rectangle
8491
Height="1"

Flow.Launcher/SelectFileManagerWindow.xaml.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,16 @@ private void btnCancel_Click(object sender, RoutedEventArgs e)
4545
{
4646
Close();
4747
}
48+
49+
private void Hyperlink_RequestNavigate(object sender, System.Windows.Navigation.RequestNavigateEventArgs e)
50+
{
51+
Process.Start(new ProcessStartInfo
52+
{
53+
FileName = e.Uri.AbsoluteUri,
54+
UseShellExecute = true
55+
});
56+
e.Handled = true;
57+
}
4858

4959
private void btnDone_Click(object sender, RoutedEventArgs e)
5060
{

0 commit comments

Comments
 (0)