Procházet zdrojové kódy

Fix dark mode toggle navigation reset.

Preserve the currently selected sidebar page when rebuilding the main panel so toggling dark mode no longer jumps users back to Join Meetings.

Made-with: Cursor
huzaifahayat12 před 1 týdnem
rodič
revize
c9a8c4e7b3
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2 1
      meetings_app/ViewController.swift

+ 2 - 1
meetings_app/ViewController.swift

@@ -1731,7 +1731,8 @@ private extension ViewController {
1731 1731
             applyGoogleProfile(profile)
1732 1732
         }
1733 1733
 
1734
-        showSidebarPage(.joinMeetings)
1734
+        // Preserve the currently selected page during rebuilds (e.g. dark mode toggle).
1735
+        showSidebarPage(selectedSidebarPage)
1735 1736
 
1736 1737
         return panel
1737 1738
     }