mirror of
https://github.com/yattee/yattee.git
synced 2025-08-06 10:44:06 +00:00
Fix another crash
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user