Parcourir la Source

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 il y a 1 semaine
Parent
commit
c9a8c4e7b3
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  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
     }