77using System ;
88using System . Threading . Tasks ;
99using System . Windows . Input ;
10+ using Windows . ApplicationModel ;
1011using Windows . Foundation . Collections ;
1112using Windows . Storage ;
1213using Windows . System ;
@@ -27,6 +28,7 @@ public ExperimentalViewModel()
2728 {
2829 IsSetAsDefaultFileManager = DetectIsSetAsDefaultFileManager ( ) ;
2930 IsSetAsOpenFileDialog = DetectIsSetAsOpenFileDialog ( ) ;
31+ IsSideloadVersion = DetectIsSideloadVersion ( ) ;
3032
3133 EditFileTagsCommand = new AsyncRelayCommand ( LaunchFileTagsConfigFile ) ;
3234 SetAsDefaultExplorerCommand = new AsyncRelayCommand ( SetAsDefaultExplorer ) ;
@@ -128,6 +130,15 @@ private bool DetectIsSetAsOpenFileDialog()
128130 return ApplicationData . Current . LocalSettings . Values . Get ( "IsSetAsOpenFileDialog" , false ) ;
129131 }
130132
133+ private bool DetectIsSideloadVersion ( )
134+ {
135+ if ( Package . Current . Id . FamilyName == "49306atecsolution.FilesUWP_dwm5abbcs5pn0" )
136+ {
137+ return false ;
138+ }
139+ return true ;
140+ }
141+
131142 private bool isSetAsDefaultFileManager ;
132143
133144 public bool IsSetAsDefaultFileManager
@@ -143,5 +154,13 @@ public bool IsSetAsOpenFileDialog
143154 get => isSetAsOpenFileDialog ;
144155 set => SetProperty ( ref isSetAsOpenFileDialog , value ) ;
145156 }
157+
158+ private bool isSideloadVersion ;
159+
160+ public bool IsSideloadVersion
161+ {
162+ get => isSideloadVersion ;
163+ set => SetProperty ( ref isSideloadVersion , value ) ;
164+ }
146165 }
147166}
0 commit comments