Fix how default actions are picked and add in default app actions as options for both debrid and magnet defaults. Kodi shows the action choice sheet with the DisclosureGroup dropped down. The new Kodi server framework also wasn't implemented in the Kodi wrapper. Fix that. Finally, add some iOS 14 fixes and repair the autocorrect search setting to actually work. Signed-off-by: kingbri <bdashore3@proton.me>
19 lines
368 B
Swift
19 lines
368 B
Swift
//
|
|
// SettingsModels.swift
|
|
// Ferrite
|
|
//
|
|
// Created by Brian Dashore on 3/20/23.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
enum DefaultAction: Codable, CaseIterable, Hashable {
|
|
static var allCases: [DefaultAction] {
|
|
[.none, .share, .kodi, .custom(name: "", listId: "")]
|
|
}
|
|
|
|
case none
|
|
case share
|
|
case kodi
|
|
case custom(name: String, listId: String)
|
|
}
|