Fix issue with changing to default icon.

This commit is contained in:
Marcin Czachursk 2023-03-24 13:49:20 +01:00
parent f72d1af9ba
commit 4783716712
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ struct GeneralSectionView: View {
.pickerStyle(.navigationLink)
.onChange(of: self.applicationState.activeIcon) { iconName in
ApplicationSettingsHandler.shared.set(activeIcon: iconName)
UIApplication.shared.setAlternateIconName(iconName)
UIApplication.shared.setAlternateIconName(iconName == "Default" ? nil : iconName)
}
// Application theme.