mirror of
https://github.com/neon443/ShhShell.git
synced 2026-03-11 13:26:16 +00:00
improve is theme selected
gave all builtin themes uuids
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user