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

Fix another crash

This commit is contained in:
Arkadiusz Fal 2022-06-30 00:12:37 +02:00
parent 069f4913ca
commit 09490a94b2

View File

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