1
0
mirror of https://github.com/yattee/yattee.git synced 2024-12-13 22:00:31 +05:30

Fix another crash

This commit is contained in:
Arkadiusz Fal 2022-06-30 00:12:37 +02:00
parent 029f19ba0b
commit 283d89b5a9

View File

@ -507,7 +507,9 @@ final class PlayerModel: ObservableObject {
Windows.player.window?.title = windowTitle
#endif
Defaults[.lastPlayed] = currentItem
DispatchQueue.main.async(qos: .background) { [weak self] in
Defaults[.lastPlayed] = self?.currentItem
}
}
#if os(macOS)