mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
Close all secondary windows on logout
This commit is contained in:
committed by
Stefan Ceriu
parent
deaa2727db
commit
891c3fffd4
@@ -21399,6 +21399,41 @@ class WindowManagerMock: WindowManagerProtocol, @unchecked Sendable {
|
||||
}
|
||||
registerCoordinatorFlowCoordinatorForWindowTypeClosure?(coordinator, flowCoordinator, type)
|
||||
}
|
||||
//MARK: - closeAllAuxiliaryWindows
|
||||
|
||||
var closeAllAuxiliaryWindowsUnderlyingCallsCount = 0
|
||||
var closeAllAuxiliaryWindowsCallsCount: Int {
|
||||
get {
|
||||
if Thread.isMainThread {
|
||||
return closeAllAuxiliaryWindowsUnderlyingCallsCount
|
||||
} else {
|
||||
var returnValue: Int? = nil
|
||||
DispatchQueue.main.sync {
|
||||
returnValue = closeAllAuxiliaryWindowsUnderlyingCallsCount
|
||||
}
|
||||
|
||||
return returnValue!
|
||||
}
|
||||
}
|
||||
set {
|
||||
if Thread.isMainThread {
|
||||
closeAllAuxiliaryWindowsUnderlyingCallsCount = newValue
|
||||
} else {
|
||||
DispatchQueue.main.sync {
|
||||
closeAllAuxiliaryWindowsUnderlyingCallsCount = newValue
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
var closeAllAuxiliaryWindowsCalled: Bool {
|
||||
return closeAllAuxiliaryWindowsCallsCount > 0
|
||||
}
|
||||
var closeAllAuxiliaryWindowsClosure: (() -> Void)?
|
||||
|
||||
func closeAllAuxiliaryWindows() {
|
||||
closeAllAuxiliaryWindowsCallsCount += 1
|
||||
closeAllAuxiliaryWindowsClosure?()
|
||||
}
|
||||
//MARK: - showGlobalSearch
|
||||
|
||||
var showGlobalSearchUnderlyingCallsCount = 0
|
||||
|
||||
Reference in New Issue
Block a user