mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 12:07:55 +00:00
Prevent the window manager from being setup more than once.
This commit is contained in:
committed by
Stefan Ceriu
parent
891c3fffd4
commit
e080c7d35a
@@ -39,6 +39,12 @@ class WindowManager: SecureWindowManagerProtocol {
|
||||
}
|
||||
|
||||
func configure(with windowScene: UIWindowScene) {
|
||||
// This gets called for all opened windows, we're only interested in the
|
||||
// first call, for the main window (works with state restoration too).
|
||||
guard mainWindow == nil else {
|
||||
return
|
||||
}
|
||||
|
||||
self.windowScene = windowScene
|
||||
mainWindow = windowScene.keyWindow
|
||||
mainWindow.tintColor = .compound.textActionPrimary
|
||||
|
||||
Reference in New Issue
Block a user