@@ -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 ) ;
0 commit comments