mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2025-02-04 03:52:22 +00:00
Also stop watcher on macOS
This commit is contained in:
parent
f1fd18a04f
commit
b417141269
1 changed files with 1 additions and 3 deletions
|
@ -171,9 +171,7 @@ struct IceCubesApp: App {
|
|||
private func handleScenePhase(scenePhase: ScenePhase) {
|
||||
switch scenePhase {
|
||||
case .background:
|
||||
if !ProcessInfo.processInfo.isiOSAppOnMac {
|
||||
watcher.stopWatching()
|
||||
}
|
||||
watcher.stopWatching()
|
||||
case .active:
|
||||
watcher.watch(streams: [.user, .direct])
|
||||
UIApplication.shared.applicationIconBadgeNumber = 0
|
||||
|
|
Loading…
Reference in a new issue