@@ -253,63 +253,55 @@ public bool IsAdaptiveLayoutEnabled
253
253
=> UserSettingsService . FoldersSettingsService . EnableOverridingFolderPreferences ;
254
254
255
255
private bool canCopyPathInPage ;
256
-
257
256
public bool CanCopyPathInPage
258
257
{
259
258
get => canCopyPathInPage ;
260
259
set => SetProperty ( ref canCopyPathInPage , value ) ;
261
260
}
262
261
263
262
private bool canGoBack ;
264
-
265
263
public bool CanGoBack
266
264
{
267
265
get => canGoBack ;
268
266
set => SetProperty ( ref canGoBack , value ) ;
269
267
}
270
268
271
269
private bool canGoForward ;
272
-
273
270
public bool CanGoForward
274
271
{
275
272
get => canGoForward ;
276
273
set => SetProperty ( ref canGoForward , value ) ;
277
274
}
278
275
279
276
private bool canNavigateToParent ;
280
-
281
277
public bool CanNavigateToParent
282
278
{
283
279
get => canNavigateToParent ;
284
280
set => SetProperty ( ref canNavigateToParent , value ) ;
285
281
}
286
282
287
283
private bool previewPaneEnabled ;
288
-
289
284
public bool PreviewPaneEnabled
290
285
{
291
286
get => previewPaneEnabled ;
292
287
set => SetProperty ( ref previewPaneEnabled , value ) ;
293
288
}
294
289
295
290
private bool canRefresh ;
296
-
297
291
public bool CanRefresh
298
292
{
299
293
get => canRefresh ;
300
294
set => SetProperty ( ref canRefresh , value ) ;
301
295
}
302
296
303
297
private string searchButtonGlyph = "\uE721 " ;
304
-
305
298
public string SearchButtonGlyph
306
299
{
307
300
get => searchButtonGlyph ;
308
301
set => SetProperty ( ref searchButtonGlyph , value ) ;
309
302
}
310
303
311
304
private bool isSearchBoxVisible ;
312
-
313
305
public bool IsSearchBoxVisible
314
306
{
315
307
get => isSearchBoxVisible ;
@@ -320,8 +312,14 @@ public bool IsSearchBoxVisible
320
312
}
321
313
}
322
314
323
- private string ? pathText ;
315
+ private bool isReleaseNotesOpen ;
316
+ public bool IsReleaseNotesOpen
317
+ {
318
+ get => isReleaseNotesOpen ;
319
+ set => SetProperty ( ref isReleaseNotesOpen , value ) ;
320
+ }
324
321
322
+ private string ? pathText ;
325
323
public string ? PathText
326
324
{
327
325
get => pathText ;
@@ -374,6 +372,7 @@ public ToolbarViewModel()
374
372
ForwardClickCommand = new RelayCommand < RoutedEventArgs > ( e => ForwardRequested ? . Invoke ( this , EventArgs . Empty ) ) ;
375
373
UpClickCommand = new RelayCommand < RoutedEventArgs > ( e => UpRequested ? . Invoke ( this , EventArgs . Empty ) ) ;
376
374
RefreshClickCommand = new RelayCommand < RoutedEventArgs > ( e => RefreshRequested ? . Invoke ( this , EventArgs . Empty ) ) ;
375
+ ViewReleaseNotesCommand = new RelayCommand ( DoViewReleaseNotes ) ;
377
376
378
377
dispatcherQueue = DispatcherQueue . GetForCurrentThread ( ) ;
379
378
dragOverTimer = dispatcherQueue . CreateTimer ( ) ;
@@ -382,6 +381,11 @@ public ToolbarViewModel()
382
381
UserSettingsService . OnSettingChangedEvent += UserSettingsService_OnSettingChangedEvent ;
383
382
}
384
383
384
+ private void DoViewReleaseNotes ( )
385
+ {
386
+ IsReleaseNotesOpen = true ;
387
+ }
388
+
385
389
private void UserSettingsService_OnSettingChangedEvent ( object ? sender , SettingChangedEventArgs e )
386
390
{
387
391
switch ( e . SettingName )
@@ -622,23 +626,20 @@ public bool IsEditModeEnabled
622
626
}
623
627
624
628
private bool manualEntryBoxLoaded ;
625
-
626
629
public bool ManualEntryBoxLoaded
627
630
{
628
631
get => manualEntryBoxLoaded ;
629
632
set => SetProperty ( ref manualEntryBoxLoaded , value ) ;
630
633
}
631
634
632
635
private bool clickablePathLoaded = true ;
633
-
634
636
public bool ClickablePathLoaded
635
637
{
636
638
get => clickablePathLoaded ;
637
639
set => SetProperty ( ref clickablePathLoaded , value ) ;
638
640
}
639
641
640
642
private string pathControlDisplayText ;
641
-
642
643
public string PathControlDisplayText
643
644
{
644
645
get => pathControlDisplayText ;
@@ -649,6 +650,7 @@ public string PathControlDisplayText
649
650
public ICommand ForwardClickCommand { get ; }
650
651
public ICommand UpClickCommand { get ; }
651
652
public ICommand RefreshClickCommand { get ; }
653
+ public ICommand ViewReleaseNotesCommand { get ; }
652
654
653
655
public void PathItemSeparator_DataContextChanged ( FrameworkElement sender , DataContextChangedEventArgs args )
654
656
{
0 commit comments