@@ -41,7 +41,6 @@ public SettingsViewModel()
41
41
{
42
42
_roamingSettings = ApplicationData . Current . RoamingSettings ;
43
43
44
- DetectAcrylicPreference ( ) ;
45
44
DetectDateTimeFormat ( ) ;
46
45
PinSidebarLocationItems ( ) ;
47
46
DetectRecycleBinPreference ( ) ;
@@ -58,7 +57,7 @@ public SettingsViewModel()
58
57
Analytics . TrackEvent ( "PinRecycleBinToSideBar " + PinRecycleBinToSideBar . ToString ( ) ) ;
59
58
Analytics . TrackEvent ( "ShowFileExtensions " + ShowFileExtensions . ToString ( ) ) ;
60
59
Analytics . TrackEvent ( "ShowConfirmDeleteDialog " + ShowConfirmDeleteDialog . ToString ( ) ) ;
61
- Analytics . TrackEvent ( "AcrylicSidebar " + AcrylicEnabled . ToString ( ) ) ;
60
+ Analytics . TrackEvent ( "IsAcrylicDisabled " + IsAcrylicDisabled . ToString ( ) ) ;
62
61
Analytics . TrackEvent ( "ShowFileOwner " + ShowFileOwner . ToString ( ) ) ;
63
62
Analytics . TrackEvent ( "IsHorizontalTabStripEnabled " + IsHorizontalTabStripEnabled . ToString ( ) ) ;
64
63
Analytics . TrackEvent ( "IsVerticalTabFlyoutEnabled " + IsVerticalTabFlyoutEnabled . ToString ( ) ) ;
@@ -510,28 +509,10 @@ public bool ListAndSortDirectoriesAlongsideFiles
510
509
set => Set ( value ) ;
511
510
}
512
511
513
- private void DetectAcrylicPreference ( )
512
+ public bool IsAcrylicDisabled
514
513
{
515
- if ( localSettings . Values [ "AcrylicEnabled" ] == null )
516
- {
517
- localSettings . Values [ "AcrylicEnabled" ] = true ;
518
- }
519
- AcrylicEnabled = ( bool ) localSettings . Values [ "AcrylicEnabled" ] ;
520
- }
521
-
522
- private bool _AcrylicEnabled = true ;
523
-
524
- public bool AcrylicEnabled
525
- {
526
- get => _AcrylicEnabled ;
527
- set
528
- {
529
- if ( value != _AcrylicEnabled )
530
- {
531
- SetProperty ( ref _AcrylicEnabled , value ) ;
532
- localSettings . Values [ "AcrylicEnabled" ] = value ;
533
- }
534
- }
514
+ get => Get ( true ) ;
515
+ set => Set ( value ) ;
535
516
}
536
517
537
518
public bool ShowAllContextMenuItems
@@ -772,10 +753,11 @@ public TValue Get<TValue>(TValue defaultValue, [CallerMemberName] string propert
772
753
Set ( tValue , propertyName ) ; // Put the corrected value in settings.
773
754
return tValue ;
774
755
}
775
-
776
756
return tValue ;
777
757
}
778
758
759
+ _roamingSettings . Values [ propertyName ] = defaultValue ;
760
+
779
761
return defaultValue ;
780
762
}
781
763
0 commit comments