@@ -87,7 +87,7 @@ private void OnLoaded(object sender, RoutedEventArgs _)
87
87
{
88
88
Activate ( ) ;
89
89
QueryTextBox . Focus ( ) ;
90
- UpdatePosition ( ) ;
90
+ // UpdatePosition();
91
91
_settings . ActivateTimes ++ ;
92
92
if ( ! _viewModel . LastQuerySelected )
93
93
{
@@ -156,10 +156,22 @@ private void OnLoaded(object sender, RoutedEventArgs _)
156
156
157
157
private void InitializePosition ( )
158
158
{
159
+ /*
159
160
Top = WindowTop();
160
161
Left = WindowLeft();
161
162
_settings.WindowTop = Top;
162
163
_settings.WindowLeft = Left;
164
+ */
165
+ if ( _settings . RememberLastLaunchLocation )
166
+ {
167
+ Left = _settings . WindowLeft ;
168
+ Top = _settings . WindowTop ;
169
+ }
170
+ else
171
+ {
172
+ Left = WindowLeft ( ) ;
173
+ Top = WindowTop ( ) ;
174
+ }
163
175
}
164
176
165
177
private void UpdateNotifyIconText ( )
@@ -265,17 +277,13 @@ public void WindowAnimator()
265
277
Duration = TimeSpan . FromSeconds ( 0.1 ) ,
266
278
FillBehavior = FillBehavior . Stop
267
279
} ;
268
- System . Diagnostics . Debug . WriteLine ( "Left: " + Left ) ;
269
- System . Diagnostics . Debug . WriteLine ( "Top: " + Top ) ;
270
280
Storyboard . SetTargetProperty ( da3 , new PropertyPath ( Window . LeftProperty ) ) ;
271
- sb . Children . Add ( da3 ) ;
272
281
Storyboard . SetTarget ( da , this ) ;
273
282
Storyboard . SetTargetProperty ( da , new PropertyPath ( Window . OpacityProperty ) ) ;
274
283
Storyboard . SetTargetProperty ( da2 , new PropertyPath ( Window . TopProperty ) ) ;
275
-
276
284
sb . Children . Add ( da ) ;
277
285
sb . Children . Add ( da2 ) ;
278
-
286
+ sb . Children . Add ( da3 ) ;
279
287
sb . Begin ( FlowMainWindow ) ;
280
288
}
281
289
0 commit comments