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 3 mois
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 {
             applyGoogleProfile(profile)
         }
 
-        showSidebarPage(.joinMeetings)
+        // Preserve the currently selected page during rebuilds (e.g. dark mode toggle).
+        showSidebarPage(selectedSidebarPage)
 
         return panel
     }