Skip to content

Commit b393d36

Browse files
committed
Add check plugin update button
1 parent 6eb52b8 commit b393d36

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

Flow.Launcher/Languages/en.xaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,7 @@
237237
<system:String x:Key="updateNoResultSubtitle">All plugins are up to date</system:String>
238238
<system:String x:Key="updateAllPluginsTitle">Update all plugins</system:String>
239239
<system:String x:Key="updateAllPluginsSubtitle">Would you like to update these plugins?{0}{0}{1}</system:String>
240+
<system:String x:Key="checkPluginUpdatesTooltip">Check plugin updates</system:String>
240241

241242
<!-- Setting Theme -->
242243
<system:String x:Key="theme">Theme</system:String>

Flow.Launcher/SettingPages/ViewModels/SettingsPanePluginStoreViewModel.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,12 @@ private async Task InstallPluginAsync()
109109
await PluginInstaller.InstallPluginAndCheckRestartAsync(file);
110110
}
111111

112+
[RelayCommand]
113+
private async Task CheckPluginUpdatesAsync()
114+
{
115+
await PluginInstaller.UpdatePluginAsync(silentUpdate: false);
116+
}
117+
112118
private static string GetFileFromDialog(string title, string filter = "")
113119
{
114120
var dlg = new Microsoft.Win32.OpenFileDialog

Flow.Launcher/SettingPages/Views/SettingsPanePluginStore.xaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,13 @@
9999
ToolTip="{DynamicResource installLocalPluginTooltip}">
100100
<ui:FontIcon FontSize="14" Glyph="&#xE8DA;" />
101101
</Button>
102+
<Button
103+
Height="34"
104+
Margin="0 0 10 0"
105+
Command="{Binding CheckPluginUpdatesCommand}"
106+
ToolTip="{DynamicResource checkPluginUpdatesTooltip}">
107+
<ui:FontIcon FontSize="14" Glyph="&#xecc5;" />
108+
</Button>
102109
<TextBox
103110
Name="PluginStoreFilterTextbox"
104111
Width="150"

0 commit comments

Comments
 (0)