Skip to content

Commit e32680a

Browse files
committed
Fill out settings entry dropdown fields
1 parent 4ffd9a4 commit e32680a

File tree

2 files changed

+16
-11
lines changed

2 files changed

+16
-11
lines changed

src/UniGetUI/Pages/AdvancedOperationHistoryPage.xaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,13 @@
3939
</Style>
4040
</ListView.ItemContainerStyle>
4141
<ListView.ItemTemplate>
42-
<DataTemplate x:DataType="local:OperationHistoryEntry">
43-
<widgets:SettingsEntry Text="{x:Bind Title}" Margin="8">
42+
<DataTemplate x:DataType="local:AdvancedOperationHistoryEntry">
43+
<widgets:SettingsEntry
44+
Text="{x:Bind Title}"
45+
UnderText="{updated} on {March 10, 2025} at {11:27 AM}"
46+
x:Name="InterfaceSettingsExpander"
47+
Icon="interactive"
48+
Margin="8">
4449
<Toolkit:SettingsExpander.Items>
4550
<widgets:TranslatedTextBlock Text="{x:Bind Content}" Margin="8" />
4651
</Toolkit:SettingsExpander.Items>

src/UniGetUI/Pages/AdvancedOperationHistoryPage.xaml.cs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@
1313

1414
namespace UniGetUI.Interface.Pages
1515
{
16-
public class OperationHistoryEntry
16+
public class AdvancedOperationHistoryEntry
1717
{
18-
public string Title { get; set; }
19-
public string Content { get; set; }
18+
public required string Title { get; set; }
19+
public required string Content { get; set; }
2020
}
2121

2222
public partial class AdvancedOperationHistoryPage : IKeyboardShortcutListener, IEnterLeaveListener
2323
{
24-
private ObservableCollection<OperationHistoryEntry> Items = new ();
24+
private ObservableCollection<AdvancedOperationHistoryEntry> Items = new ();
2525

2626
public AdvancedOperationHistoryPage()
2727
{
@@ -34,11 +34,11 @@ private void LoadOperationHistory()
3434
{
3535
Items.Clear();
3636

37-
Items.Add(new OperationHistoryEntry { Title = "Test 1", Content = "Content 1" });
38-
Items.Add(new OperationHistoryEntry { Title = "Test 2", Content = "Content 2" });
39-
Items.Add(new OperationHistoryEntry { Title = "Test 3", Content = "Content 3" });
40-
Items.Add(new OperationHistoryEntry { Title = "Test 4", Content = "Content 4" });
41-
Items.Add(new OperationHistoryEntry { Title = "Test 5", Content = "Content 5" });
37+
Items.Add(new AdvancedOperationHistoryEntry { Title = "Test 1", Content = "Content 1" });
38+
Items.Add(new AdvancedOperationHistoryEntry { Title = "Test 2", Content = "Content 2" });
39+
Items.Add(new AdvancedOperationHistoryEntry { Title = "Test 3", Content = "Content 3" });
40+
Items.Add(new AdvancedOperationHistoryEntry { Title = "Test 4", Content = "Content 4" });
41+
Items.Add(new AdvancedOperationHistoryEntry { Title = "Test 5", Content = "Content 5" });
4242
}
4343

4444
public void ReloadTriggered()

0 commit comments

Comments
 (0)