@@ -76,15 +76,6 @@ protected override void OnNavigatedTo(NavigationEventArgs e)
7676 SettingsTitle . Text = CoreTools . Translate ( "{0} settings" , Manager . DisplayName ) ;
7777 StatusTitle . Text = CoreTools . Translate ( "{0} status" , Manager . DisplayName ) ;
7878
79- var AlwaysElevateManagerOP = new CheckboxCard_Dict ( )
80- {
81- Text = CoreTools . Translate ( "Always run {pm} operations with administrator rights" ) . Replace ( "{pm}" , Manager . DisplayName ) ,
82- DictionaryName = "AlwaysElevate" ,
83- SettingName = Manager . Name ,
84- CornerRadius = new CornerRadius ( 8 , 8 , 0 , 0 ) ,
85- BorderThickness = new Thickness ( 1 , 1 , 1 , 0 ) ,
86- } ;
87-
8879 var DisableNotifsCard = new CheckboxCard_Dict ( )
8980 {
9081 Text = CoreTools . Translate ( "Ignore packages from {pm} when showing a notification about updates" ) . Replace ( "{pm}" , Manager . DisplayName ) ,
@@ -119,7 +110,6 @@ protected override void OnNavigatedTo(NavigationEventArgs e)
119110 {
120111 DisableNotifsCard . CornerRadius = new CornerRadius ( 0 ) ;
121112 DisableNotifsCard . BorderThickness = new Thickness ( 1 , 1 , 1 , 0 ) ;
122- ExtraControls . Children . Add ( AlwaysElevateManagerOP ) ;
123113 ExtraControls . Children . Add ( DisableNotifsCard ) ;
124114
125115 ButtonCard WinGet_ResetWindowsIPackageManager = new ( )
@@ -185,7 +175,6 @@ protected override void OnNavigatedTo(NavigationEventArgs e)
185175 {
186176 DisableNotifsCard . CornerRadius = new CornerRadius ( 0 ) ;
187177 DisableNotifsCard . BorderThickness = new Thickness ( 1 , 1 , 1 , 0 ) ;
188- ExtraControls . Children . Add ( AlwaysElevateManagerOP ) ;
189178 ExtraControls . Children . Add ( DisableNotifsCard ) ;
190179
191180 ButtonCard Scoop_Install = new ( )
@@ -248,7 +237,6 @@ protected override void OnNavigatedTo(NavigationEventArgs e)
248237 {
249238 DisableNotifsCard . CornerRadius = new CornerRadius ( 0 ) ;
250239 DisableNotifsCard . BorderThickness = new Thickness ( 1 , 1 , 1 , 0 ) ;
251- ExtraControls . Children . Add ( AlwaysElevateManagerOP ) ;
252240 ExtraControls . Children . Add ( DisableNotifsCard ) ;
253241
254242 CheckboxCard Chocolatey_SystemChoco = new ( )
@@ -267,7 +255,6 @@ protected override void OnNavigatedTo(NavigationEventArgs e)
267255 {
268256 DisableNotifsCard . CornerRadius = new CornerRadius ( 0 ) ;
269257 DisableNotifsCard . BorderThickness = new Thickness ( 1 , 1 , 1 , 0 ) ;
270- ExtraControls . Children . Add ( AlwaysElevateManagerOP ) ;
271258 ExtraControls . Children . Add ( DisableNotifsCard ) ;
272259
273260 Settings . SetValue ( "DefaultVcpkgTriplet" , Vcpkg . GetDefaultTriplet ( ) ) ;
@@ -344,7 +331,6 @@ protected override void OnNavigatedTo(NavigationEventArgs e)
344331 {
345332 DisableNotifsCard . CornerRadius = new CornerRadius ( 0 , 0 , 8 , 8 ) ;
346333 DisableNotifsCard . BorderThickness = new Thickness ( 1 , 1 , 1 , 1 ) ;
347- ExtraControls . Children . Add ( AlwaysElevateManagerOP ) ;
348334 ExtraControls . Children . Add ( DisableNotifsCard ) ;
349335 }
350336
0 commit comments