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:
parent
029f19ba0b
commit
283d89b5a9
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user