Skip to content

Commit

Permalink
Add switch to enable/disable user GSudo (fix #2140)
Browse files Browse the repository at this point in the history
  • Loading branch information
marticliment committed Jun 14, 2024
1 parent aa54649 commit f91ca87
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
Binary file modified src/UniGetUI/Assets/Utilities/gsudo.exe
Binary file not shown.
6 changes: 6 additions & 0 deletions src/UniGetUI/Interface/Pages/SettingsPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,12 @@
SettingName="DisableApi"
StateChanged="DisableWidgetsApi_StateChanged"
/>
<widgets:CheckboxCard
x:Name="UseUserGSudoToggle"
Text="Use installed GSudo instead of the bundled one"
SettingName="UseUserGSudo"
StateChanged="UseUserGSudoToggle_StateChanged"
/>
<widgets:CheckboxCard
Text="Allow parallel installs (NOT RECOMMENDED)"
SettingName="AllowParallelInstalls"
Expand Down
5 changes: 5 additions & 0 deletions src/UniGetUI/Interface/Pages/SettingsPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -525,5 +525,10 @@ public void EnablePackageBackupUI(bool enabled)
}
}
}

private void UseUserGSudoToggle_StateChanged(object sender, CheckBoxEventArgs e)
{
ExperimentalSettingsExpander.ShowRestartRequiredBanner();
}
}
}

0 comments on commit f91ca87

Please sign in to comment.