@@ -38,9 +38,7 @@ namespace Flow.Launcher
38
38
public partial class MainWindow
39
39
{
40
40
#region Private Fields
41
-
42
- private readonly Storyboard _progressBarStoryboard = new Storyboard ( ) ;
43
- private bool isProgressBarStoryboardPaused ;
41
+
44
42
private readonly Settings _settings ;
45
43
private NotifyIcon _notifyIcon ;
46
44
private readonly ContextMenu contextMenu = new ( ) ;
@@ -185,19 +183,19 @@ private async void OnLoaded(object sender, RoutedEventArgs _)
185
183
PreviewMouseMove += MainPreviewMouseMove ;
186
184
CheckFirstLaunch ( ) ;
187
185
HideStartup ( ) ;
188
- // show notify icon when flowlauncher is hidden
186
+ // Show notify icon when flowlauncher is hidden
189
187
InitializeNotifyIcon ( ) ;
190
188
InitializeColorScheme ( ) ;
191
189
WindowsInteropHelper . DisableControlBox ( this ) ;
192
190
InitProgressbarAnimation ( ) ;
191
+ // Move the window out of screen because setting backdrop will cause flicker with a rectangle
192
+ Left = Top = - 10000 ;
193
+ await ThemeManager . Instance . RefreshFrameAsync ( ) ;
193
194
// Initialize call twice to work around multi-display alignment issue- https://github.com/Flow-Launcher/Flow.Launcher/issues/2910
194
195
InitializePosition ( ) ;
195
196
InitializePosition ( ) ;
196
- // Refresh frame after position is intialized
197
- await ThemeManager . Instance . RefreshFrameAsync ( ) ;
198
197
PreviewReset ( ) ;
199
- // since the default main window visibility is visible
200
- // so we need set focus during startup
198
+ // Since the default main window visibility is visible, so we need set focus during startup
201
199
QueryTextBox . Focus ( ) ;
202
200
203
201
_viewModel . PropertyChanged += ( o , e ) =>
0 commit comments