Skip to content

Commit 5578daa

Browse files
committed
Remove files tip button
1 parent 6ce2cf9 commit 5578daa

File tree

3 files changed

+5
-57
lines changed

3 files changed

+5
-57
lines changed

Flow.Launcher/Languages/en.xaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -366,9 +366,7 @@
366366

367367
<!-- FileManager Setting Dialog -->
368368
<system:String x:Key="fileManagerWindow">Select File Manager</system:String>
369-
<system:String x:Key="fileManager_files_btn">Do you use Files?</system:String>
370369
<system:String x:Key="fileManager_learnMore">Learn more</system:String>
371-
<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>
372370
<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>
373371
<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>
374372
<system:String x:Key="fileManager_name">File Manager</system:String>

Flow.Launcher/SelectFileManagerWindow.xaml

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -74,20 +74,11 @@
7474
<TextBlock Margin="0 14 0 0" FontSize="14">
7575
<TextBlock Text="{DynamicResource fileManager_tips2}" TextWrapping="WrapWithOverflow" />
7676
</TextBlock>
77-
<StackPanel Margin="0 14 0 0" Orientation="Horizontal">
78-
<Button
79-
x:Name="btnTips"
80-
Margin="0 7 0 7"
81-
HorizontalAlignment="Left"
82-
Command="{Binding OpenFilesTipsCommand}"
83-
CommandParameter="{Binding RelativeSource={RelativeSource Self}}"
84-
Content="{DynamicResource fileManager_files_btn}" />
85-
<TextBlock Margin="10 4 0 4" VerticalAlignment="Center">
86-
<Hyperlink NavigateUri="https://www.flowlauncher.com/docs/#/filemanager" RequestNavigate="Hyperlink_RequestNavigate">
87-
<TextBlock FontSize="14" Text="{DynamicResource fileManager_learnMore}" />
88-
</Hyperlink>
89-
</TextBlock>
90-
</StackPanel>
77+
<TextBlock Margin="0 14 0 0" VerticalAlignment="Center">
78+
<Hyperlink NavigateUri="https://www.flowlauncher.com/docs/#/filemanager" RequestNavigate="Hyperlink_RequestNavigate">
79+
<TextBlock FontSize="14" Text="{DynamicResource fileManager_learnMore}" />
80+
</Hyperlink>
81+
</TextBlock>
9182
</StackPanel>
9283
<Rectangle
9384
Height="1"

Flow.Launcher/ViewModel/SelectFileManagerViewModel.cs

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -102,47 +102,6 @@ private static bool IsFileManagerValid(string path)
102102
}
103103
}
104104

105-
[RelayCommand]
106-
private async Task OpenFilesTipsAsync(Button button)
107-
{
108-
var tipText = App.API.GetTranslation("fileManager_files_tips");
109-
var url = "https://files.community/docs/contributing/updates";
110-
111-
var textBlock = new TextBlock
112-
{
113-
FontSize = 14,
114-
TextWrapping = TextWrapping.Wrap,
115-
Margin = new Thickness(0, 0, 0, 0)
116-
};
117-
118-
textBlock.Inlines.Add(tipText);
119-
120-
var hyperlink = new Hyperlink
121-
{
122-
NavigateUri = new Uri(url)
123-
};
124-
hyperlink.Inlines.Add(url);
125-
hyperlink.RequestNavigate += (s, args) =>
126-
{
127-
App.API.OpenUrl(args.Uri.AbsoluteUri);
128-
args.Handled = true;
129-
};
130-
131-
textBlock.Inlines.Add(hyperlink);
132-
133-
var tipsDialog = new ContentDialog()
134-
{
135-
Owner = Window.GetWindow(button),
136-
Title = (string)Application.Current.Resources["fileManager_files_btn"],
137-
Content = textBlock,
138-
PrimaryButtonText = (string)Application.Current.Resources["commonOK"],
139-
CornerRadius = new CornerRadius(8),
140-
Style = (Style)Application.Current.Resources["ContentDialog"]
141-
};
142-
143-
await tipsDialog.ShowAsync();
144-
}
145-
146105
[RelayCommand]
147106
private void Add()
148107
{

0 commit comments

Comments
 (0)