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:
parent
069f4913ca
commit
09490a94b2
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user