Skip to content

Commit 091b4af

Browse files
committed
switch to use main window's Show method
1 parent c94a04b commit 091b4af

File tree

9 files changed

+8
-15
lines changed

9 files changed

+8
-15
lines changed

Flow.Launcher/App.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ public void Dispose()
176176

177177
public void OnSecondAppStarted()
178178
{
179-
Current.MainWindow.Visibility = Visibility.Visible;
179+
Current.MainWindow.Show();
180180
}
181181
}
182182
}

Flow.Launcher/CustomQueryHotkeySetting.xaml.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
using Flow.Launcher.Core.Resource;
22
using Flow.Launcher.Helper;
3-
using Flow.Launcher.Infrastructure.Hotkey;
43
using Flow.Launcher.Infrastructure.UserSettings;
5-
using System;
64
using System.Collections.ObjectModel;
75
using System.Linq;
86
using System.Windows;
@@ -91,10 +89,9 @@ public void UpdateItem(CustomPluginHotkey item)
9189
private void BtnTestActionKeyword_OnClick(object sender, RoutedEventArgs e)
9290
{
9391
App.API.ChangeQuery(tbAction.Text);
94-
Application.Current.MainWindow.Visibility = Visibility.Visible;
92+
Application.Current.MainWindow.Show();
9593
Application.Current.MainWindow.Opacity = 1;
9694
Application.Current.MainWindow.Focus();
97-
9895
}
9996

10097
private void cmdEsc_OnPress(object sender, ExecutedRoutedEventArgs e)

Flow.Launcher/ViewModel/MainViewModel.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
using System.Linq;
44
using System.Threading;
55
using System.Threading.Tasks;
6-
using System.Threading.Tasks.Dataflow;
76
using System.Windows;
87
using System.Windows.Media;
98
using System.Windows.Input;
@@ -21,9 +20,6 @@
2120
using Microsoft.VisualStudio.Threading;
2221
using System.Threading.Channels;
2322
using ISavable = Flow.Launcher.Plugin.ISavable;
24-
using System.Windows.Threading;
25-
using NHotkey;
26-
using Windows.Web.Syndication;
2723

2824

2925
namespace Flow.Launcher.ViewModel

Plugins/Flow.Launcher.Plugin.Explorer/Search/WindowsIndex/IndexSearch.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ private static List<Result> ResultForWindexSearchOff(string rawQuery)
205205
}
206206

207207
var mainWindow = Application.Current.MainWindow;
208-
mainWindow.Visibility = Visibility.Visible;
208+
mainWindow.Show();
209209
mainWindow.Focus();
210210

211211
return false;

Plugins/Flow.Launcher.Plugin.Explorer/plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"Name": "Explorer",
1111
"Description": "Search and manage files and folders. Explorer utilises Windows Index Search",
1212
"Author": "Jeremy Wu",
13-
"Version": "1.10.0",
13+
"Version": "1.10.1",
1414
"Language": "csharp",
1515
"Website": "https://github.com/Flow-Launcher/Flow.Launcher",
1616
"ExecuteFileName": "Flow.Launcher.Plugin.Explorer.dll",

Plugins/Flow.Launcher.Plugin.PluginsManager/PluginsManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ internal async Task InstallOrUpdate(UserPlugin plugin)
118118
$"{Context.CurrentPluginMetadata.ActionKeywords.FirstOrDefault()} {Settings.HotkeyUpdate} {plugin.Name}");
119119

120120
var mainWindow = Application.Current.MainWindow;
121-
mainWindow.Visibility = Visibility.Visible;
121+
mainWindow.Show();
122122
mainWindow.Focus();
123123

124124
shouldHideWindow = false;

Plugins/Flow.Launcher.Plugin.PluginsManager/plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"Name": "Plugins Manager",
77
"Description": "Management of installing, uninstalling or updating Flow Launcher plugins",
88
"Author": "Jeremy Wu",
9-
"Version": "1.9.0",
9+
"Version": "1.9.1",
1010
"Language": "csharp",
1111
"Website": "https://github.com/Flow-Launcher/Flow.Launcher",
1212
"ExecuteFileName": "Flow.Launcher.Plugin.PluginsManager.dll",

Plugins/Flow.Launcher.Plugin.Shell/Main.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ private void OnWinRPressed()
329329

330330
// show the main window and set focus to the query box
331331
Window mainWindow = Application.Current.MainWindow;
332-
mainWindow.Visibility = Visibility.Visible;
332+
mainWindow.Show();
333333
mainWindow.Focus();
334334
}
335335

Plugins/Flow.Launcher.Plugin.Shell/plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"Name": "Shell",
55
"Description": "Provide executing commands from Flow Launcher",
66
"Author": "qianlifeng",
7-
"Version": "1.4.5",
7+
"Version": "1.4.6",
88
"Language": "csharp",
99
"Website": "https://github.com/Flow-Launcher/Flow.Launcher",
1010
"ExecuteFileName": "Flow.Launcher.Plugin.Shell.dll",

0 commit comments

Comments
 (0)