-
Notifications
You must be signed in to change notification settings - Fork 851
Expand file tree
/
Copy pathUpdates.axaml
More file actions
103 lines (85 loc) · 5.93 KB
/
Copy pathUpdates.axaml
File metadata and controls
103 lines (85 loc) · 5.93 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<UserControl x:Class="UniGetUI.Avalonia.Views.Pages.SettingsPages.Updates"
xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:vm="using:UniGetUI.Avalonia.ViewModels.Pages.SettingsPages"
xmlns:settings="using:UniGetUI.Avalonia.Views.Controls.Settings"
xmlns:t="using:UniGetUI.Avalonia.MarkupExtensions"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
x:DataType="vm:UpdatesViewModel">
<ScrollViewer HorizontalScrollBarVisibility="Disabled">
<StackPanel Orientation="Vertical" Spacing="0">
<settings:TranslatedTextBlock Text="Update checking"
FontWeight="SemiBold"
Margin="44,32,4,8"/>
<settings:CheckboxCard SettingName="DisableAutoCheckforUpdates"
Text="{t:Translate Check for package updates periodically}"
StateChangedCommand="{Binding UpdateAutoCheckEnabledCommand}"
CornerRadius="8,8,0,0"/>
<settings:ComboboxCard x:Name="UpdatesCheckIntervalSelector"
SettingName="UpdatesCheckInterval"
Text="{t:Translate Check for updates every:}"
ValueChangedCommand="{Binding ShowRestartRequiredCommand}"
BorderThickness="1,0"
CornerRadius="0,0,8,8"
IsEnabled="{Binding IsAutoCheckEnabled}"/>
<settings:TranslatedTextBlock Text="Automatic updates"
FontWeight="SemiBold"
Margin="44,32,4,8"/>
<settings:CheckboxCard SettingName="AutomaticallyUpdatePackages"
Text="{t:Translate Install available updates automatically}"
CornerRadius="8,8,0,0"
IsEnabled="{Binding IsAutoCheckEnabled}"/>
<settings:CheckboxCard SettingName="DisableAUPOnMeteredConnections"
ForceInversion="True"
Text="{t:Translate Do not automatically install updates when the network connection is metered}"
BorderThickness="1,0"
CornerRadius="0"
IsEnabled="{Binding IsAutoCheckEnabled}"/>
<settings:CheckboxCard SettingName="DisableAUPOnBattery"
ForceInversion="True"
Text="{t:Translate Do not automatically install updates when the device runs on battery}"
BorderThickness="1,1,1,0"
CornerRadius="0"
IsEnabled="{Binding IsAutoCheckEnabled}"/>
<settings:CheckboxCard SettingName="DisableAUPOnBatterySaver"
ForceInversion="True"
Text="{t:Translate Do not automatically install updates when the battery saver is on}"
CornerRadius="0,0,8,8"
IsEnabled="{Binding IsAutoCheckEnabled}"/>
<settings:TranslatedTextBlock Text="Update security"
FontWeight="SemiBold"
Margin="44,32,4,8"/>
<settings:ComboboxCard x:Name="MinimumUpdateAgeSelector"
SettingName="MinimumUpdateAge"
Text="{t:Translate Minimum age for updates}"
Description="{t:Translate Only show updates that are at least the specified number of days old}"
CornerRadius="8,8,8,8"/>
<settings:TextboxCard x:Name="MinimumUpdateAgeCustomInput"
SettingName="MinimumUpdateAgeCustom"
Text="{t:Translate Custom minimum age (days)}"
Placeholder="{t:Translate e.g. 10}"
IsNumericOnly="True"
IsVisible="{Binding IsCustomAgeSelected}"
BorderThickness="1,0,1,1"
CornerRadius="0,0,8,8"/>
<ContentControl x:Name="ReleaseDateCompatTableHolder"
Margin="0,8,0,0"/>
<settings:TranslatedTextBlock Text="Related settings"
FontWeight="SemiBold"
Margin="44,32,4,8"/>
<settings:SettingsCard BorderThickness="1,1,1,0"
CornerRadius="8,8,0,0"
IsClickEnabled="True"
Command="{Binding NavigateToOperationsCommand}"
Header="{t:Translate Package operation preferences}"
Description="{t:Translate Text='Change how UniGetUI handles install, update and uninstall operations.'}"/>
<settings:SettingsCard CornerRadius="0,0,8,8"
IsClickEnabled="True"
Command="{Binding NavigateToAdministratorCommand}"
Header="{t:Translate Administrator rights and other dangerous settings}"
Description="{t:Translate Text='Reduce UAC prompts, elevate installations by default, unlock certain dangerous features, etc.'}"/>
</StackPanel>
</ScrollViewer>
</UserControl>