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)