Quellcode durchsuchen

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 vor 1 Woche
Ursprung
Commit
c9a8c4e7b3
1 geänderte Dateien mit 2 neuen und 1 gelöschten Zeilen
  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
     }