mirror of
https://github.com/yattee/yattee.git
synced 2024-12-22 13:33:42 +00:00
Fix possible crashes
This commit is contained in:
parent
72a98314c1
commit
2d02d9b472
@ -51,7 +51,7 @@ extension Watch {
|
||||
@NSManaged var appName: String?
|
||||
@NSManaged var instanceURL: URL?
|
||||
|
||||
var app: VideosApp! {
|
||||
var app: VideosApp? {
|
||||
guard let appName else { return nil }
|
||||
return .init(rawValue: appName)
|
||||
}
|
||||
|
@ -32,9 +32,11 @@ struct YatteeApp: App {
|
||||
|
||||
@State private var configured = false
|
||||
|
||||
@StateObject private var accounts = AccountsModel.shared
|
||||
@StateObject private var comments = CommentsModel.shared
|
||||
@StateObject private var instances = InstancesModel.shared
|
||||
@StateObject private var menu = MenuModel.shared
|
||||
@StateObject private var navigation = NavigationModel.shared
|
||||
@StateObject private var networkState = NetworkStateModel.shared
|
||||
@StateObject private var player = PlayerModel.shared
|
||||
@StateObject private var playlists = PlaylistsModel.shared
|
||||
|
Loading…
Reference in New Issue
Block a user