Skip to content

Commit 6b5230f

Browse files
committed
improvements to Administrator settings page
1 parent b063ad6 commit 6b5230f

2 files changed

Lines changed: 15 additions & 9 deletions

File tree

src/UniGetUI/Pages/SettingsPages/GeneralPages/Administrator.xaml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,18 @@
7373
Text="Ignore custom pre-install and post-install commands when importing packages from a bundle"
7474
WarningText="Pre and post install commands will be run before and after a package gets installed, upgraded or uninstalled. Be aware that they may break things unless used carefully" />
7575

76+
<widgets:TranslatedTextBlock
77+
Margin="4,32,4,8"
78+
FontWeight="SemiBold"
79+
Text="Restrictions on package managers" />
80+
81+
<widgets:SecureCheckboxCard
82+
x:Name="AllowCustomManagerPaths"
83+
CornerRadius="8"
84+
SettingName="AllowCustomManagerPaths"
85+
Text="Allow changing the paths for package manager executables"
86+
WarningText="Turning this on enables changing the executable file used to interact with package managers. While this allows finer-grained customization of your install processes, it may also be dangerous" />
87+
7688
<widgets:TranslatedTextBlock
7789
Margin="4,32,4,8"
7890
FontWeight="SemiBold"
@@ -95,12 +107,6 @@
95107
Text="Allow importing custom pre-install and post-install commands when importing packages from a bundle"
96108
WarningText="Pre and post install commands can do very nasty things to your device, if designed to do so. It can be very dangerous to import the commands from a bundle, unless you trust the source of that package bundle" />
97109

98-
<widgets:SecureCheckboxCard
99-
x:Name="AllowCustomManagerPaths"
100-
CornerRadius="8,8,0,0"
101-
SettingName="AllowCustomManagerPaths"
102-
Text="Allow UniGetUI to use customized paths for package manager executables"
103-
WarningText="Turning this on enables the use of any executable defined in the user settings to be used as the package manager executable. While this allows finer-grained customization of your install processes, it can also allow a malicious actor to gain privelaged execution by changing your executable which is then elevated. Proceed with caution." />
104110
</StackPanel>
105111
</ScrollViewer>
106112
</Page>

src/UniGetUI/Pages/SettingsPages/ManagersPages/PackageManager.xaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,16 +54,16 @@
5454
</InfoBar>
5555
<controls:SettingsCard
5656
x:Name="ManagerExecutable"
57-
Padding="24,16,24,0"
57+
Padding="24,16,24,16"
5858
HorizontalContentAlignment="Left"
59-
BorderThickness="1,0,1,0"
59+
BorderThickness="1,0,1,1"
6060
ContentAlignment="Vertical"
6161
CornerRadius="0,0,0,0">
6262
<controls:SettingsCard.Header>
6363
<TextBlock Text="Select the executable to be used. Only executables found in path will be shown" />
6464
</controls:SettingsCard.Header>
6565
<controls:SettingsCard.Content>
66-
<Grid HorizontalAlignment="Left" RowSpacing="4">
66+
<Grid HorizontalAlignment="Left" RowSpacing="4" ColumnSpacing="4">
6767
<Grid.RowDefinitions>
6868
<RowDefinition Height="Auto" />
6969
<RowDefinition Height="Auto" />

0 commit comments

Comments
 (0)