Fixes for multi-window support. (#5528)

* Correctly handle the re-opening of the main window.

Add an additional safe-guard to ensure only one main window exists.
Make sure all secondary windows use the correct tint colour.

* Fix a bug where the settings screen isn't shown on macOS when the AppLock feature is enabled.
This commit is contained in:
Doug
2026-05-01 14:44:04 +01:00
committed by GitHub
parent 3b0b401e49
commit 6cfcd7d41f
11 changed files with 77 additions and 17 deletions

View File

@@ -19,7 +19,8 @@ struct SettingsScreenViewModelTests {
let userSession = UserSessionMock(.init(clientProxy: ClientProxyMock(.init(userID: ""))))
viewModel = SettingsScreenViewModel(userSession: userSession,
appSettings: ServiceLocator.shared.settings,
isBugReportServiceEnabled: true)
isBugReportServiceEnabled: true,
isInSecondaryWindow: false)
context = viewModel.context
}