Skip to content

Commit 6c181db

Browse files
committed
Update WinUIEx to 2.6.0
1 parent 672fa03 commit 6c181db

2 files changed

Lines changed: 2 additions & 42 deletions

File tree

src/UniGetUI/MainWindow.xaml.cs

Lines changed: 1 addition & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ public MainWindow()
5757
DismissableNotification.CloseButtonContent = CoreTools.Translate("Close");
5858

5959
ExtendsContentIntoTitleBar = true;
60+
AppWindow.TitleBar.PreferredHeightOption = TitleBarHeightOption.Tall;
6061
try
6162
{
6263
SetTitleBar(MainContentGrid);
@@ -125,8 +126,6 @@ public MainWindow()
125126
_ = AutoUpdater.UpdateCheckLoop(this, UpdatesBanner);
126127

127128

128-
TransferOldSettingsFormats();
129-
130129
Activated += (_, e) =>
131130
{
132131
if (e.WindowActivationState is WindowActivationState.CodeActivated
@@ -221,45 +220,6 @@ private void ClearSubtitle()
221220
Title = "UniGetUI";
222221
}
223222

224-
private static void TransferOldSettingsFormats()
225-
{
226-
/*if (!Settings.Get(Settings.K.TransferredOldSettings))
227-
{
228-
foreach (IPackageManager Manager in PEInterface.Managers)
229-
{
230-
string SettingName = "Disable" + Manager.Name;
231-
if (Settings.Get(SettingName))
232-
{
233-
Settings.SetDictionaryItem(Settings.K.DisabledManagers, Manager.Name, true);
234-
Settings.Set(SettingName, false);
235-
}
236-
}
237-
238-
// Dependency checks don't need to be transferred, because the worst case scenario is the user has to click the "don't show again" again
239-
240-
foreach (string Page in new[]{ "Discover", "Installed", "Bundles", "Updates"})
241-
{
242-
if (Settings.Get($"HideToggleFilters{Page}Page"))
243-
{
244-
Settings.SetDictionaryItem(Settings.K.HideToggleFilters, Page, true);
245-
Settings.Set($"HideToggleFilters{Page}Page", false);
246-
}
247-
248-
if (Settings.Get($"DisableInstantSearch{Page}Tab"))
249-
{
250-
Settings.SetDictionaryItem(Settings.K.DisableInstantSearch, Page, true);
251-
Settings.Set($"DisableInstantSearch{Page}Tab", false);
252-
}
253-
254-
if (!int.TryParse(Settings.GetValue($"SidepanelWidth{Page}Page"), out int sidepanelWidth)) sidepanelWidth = 250;
255-
Settings.SetDictionaryItem(Settings.K.SidepanelWidths, Page, sidepanelWidth);
256-
Settings.Set($"SidepanelWidth{Page}Page", false);
257-
}
258-
259-
Settings.Set(Settings.K.TransferredOldSettings, true);
260-
}*/
261-
}
262-
263223
public void HandleNotificationActivation(AppNotificationActivatedEventArgs args)
264224
{
265225
args.Arguments.TryGetValue("action", out string? action);

src/UniGetUI/UniGetUI.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
<PackageReference Include="System.Net.Http" Version="4.3.4" />
8686
<PackageReference Include="System.Private.Uri" Version="4.3.2" />
8787
<PackageReference Include="System.Text.RegularExpressions" Version="4.3.1" />
88-
<PackageReference Include="WinUIEx" Version="2.5.1" />
88+
<PackageReference Include="WinUIEx" Version="2.6.0" />
8989
<PackageReference Include="YamlDotNet" Version="16.3.0" />
9090

9191
<Manifest Include="$(ApplicationManifest)" />

0 commit comments

Comments
 (0)