fix: drop unused AlternateAppIconSettings.selected for Periphery

This commit is contained in:
Taksh 2026-07-31 19:03:59 +03:00
parent 88885d178b
commit c51327a540
2 changed files with 1 additions and 7 deletions

View File

@ -67,12 +67,6 @@ enum AlternateAppIconSettings {
}
}
/// Current preference (UserDefaults). The App Info picker calls
/// `setSelected` directly no setter here.
static var selected: Icon {
selected(in: .standard)
}
static func selected(in defaults: UserDefaults) -> Icon {
let raw = defaults.string(forKey: storageKey) ?? Icon.primary.rawValue
return Icon(rawValue: raw) ?? .primary

View File

@ -35,7 +35,7 @@ struct AppInfoView: View {
/// start, so surface the restart hint.
@State private var showLanguageRestartNote = false
#if os(iOS)
@State private var selectedAppIcon = AlternateAppIconSettings.selected
@State private var selectedAppIcon = AlternateAppIconSettings.selected(in: .standard)
#endif
private enum Pane: String {