mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
QR Code, verification code views (#2685)
This commit is contained in:
@@ -903,7 +903,30 @@ class ApplicationMock: ApplicationProtocol {
|
||||
}
|
||||
//MARK: - openAppSettings
|
||||
|
||||
var openAppSettingsCallsCount = 0
|
||||
var openAppSettingsUnderlyingCallsCount = 0
|
||||
var openAppSettingsCallsCount: Int {
|
||||
get {
|
||||
if Thread.isMainThread {
|
||||
return openAppSettingsUnderlyingCallsCount
|
||||
} else {
|
||||
var returnValue: Int? = nil
|
||||
DispatchQueue.main.sync {
|
||||
returnValue = openAppSettingsUnderlyingCallsCount
|
||||
}
|
||||
|
||||
return returnValue!
|
||||
}
|
||||
}
|
||||
set {
|
||||
if Thread.isMainThread {
|
||||
openAppSettingsUnderlyingCallsCount = newValue
|
||||
} else {
|
||||
DispatchQueue.main.sync {
|
||||
openAppSettingsUnderlyingCallsCount = newValue
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
var openAppSettingsCalled: Bool {
|
||||
return openAppSettingsCallsCount > 0
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user