improve is theme selected

gave all builtin themes uuids
This commit is contained in:
neon443
2025-06-29 10:49:52 +01:00
parent a4d245caec
commit 331b21b23f
14 changed files with 14 additions and 17 deletions

View File

@@ -57,10 +57,7 @@ class HostsManager: ObservableObject, @unchecked Sendable {
}
func isThemeSelected(_ themeInQuestion: Theme) -> Bool {
var themeInQWithSameID = themeInQuestion
themeInQWithSameID.id = selectedTheme.id
return themeInQWithSameID == self.selectedTheme
return themeInQuestion == self.selectedTheme
}
func renameTheme(_ theme: Theme?, to newName: String) {