Skip to content

Commit f35dac2

Browse files
committed
feat: Memory cleanup
1 parent 41599a5 commit f35dac2

4 files changed

Lines changed: 6 additions & 3 deletions

File tree

Nickvision.Application.WinUI/Controls/AboutDialog.xaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
xmlns:nickvision="using:Nickvision.Desktop.WinUI.Controls"
77
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
88
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
9-
mc:Ignorable="d" Style="{StaticResource DefaultContentDialogStyle}">
9+
mc:Ignorable="d" Style="{StaticResource DefaultContentDialogStyle}"
10+
Loaded="Dialog_Loaded">
1011

1112
<ScrollViewer HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Visible">
1213
<Grid RowSpacing="6">

Nickvision.Application.WinUI/Controls/AboutDialog.xaml.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ public string DebugInformation
5353
}
5454
}
5555

56+
private void Dialog_Loaded(object sender, RoutedEventArgs e) => SelectorGeneral.IsSelected = true;
57+
5658
private void SelectorBar_SelectionChanged(SelectorBar sender, SelectorBarSelectionChangedEventArgs args)
5759
{
5860
var index = sender.Items.IndexOf(sender.SelectedItem);

Nickvision.Application.WinUI/Helpers/IServiceCollectionExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public IServiceCollection AddControls()
1212
{
1313
collection.AddSingleton<MainWindow>();
1414
collection.AddTransient<SettingsPage>();
15-
collection.AddTransient<AboutDialog>();
15+
collection.AddSingleton<AboutDialog>();
1616
return collection;
1717
}
1818
}

resources/po/application.pot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: PACKAGE VERSION\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2026-02-23 11:06-0500\n"
11+
"POT-Creation-Date: 2026-02-23 11:20-0500\n"
1212
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1313
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1414
"Language-Team: LANGUAGE <LL@li.org>\n"

0 commit comments

Comments
 (0)