diff --git a/CodeEdit/Features/Settings/Pages/ThemeSettings/Models/ThemeModel+CRUD.swift b/CodeEdit/Features/Settings/Pages/ThemeSettings/Models/ThemeModel+CRUD.swift index 757df4895..07b03dd14 100644 --- a/CodeEdit/Features/Settings/Pages/ThemeSettings/Models/ThemeModel+CRUD.swift +++ b/CodeEdit/Features/Settings/Pages/ThemeSettings/Models/ThemeModel+CRUD.swift @@ -246,16 +246,6 @@ extension ThemeModel { try filemanager.moveItem(at: oldURL, to: finalURL) try self.loadThemes() - - if let index = themes.firstIndex(where: { $0.fileURL == finalURL }) { - themes[index].displayName = finalName - themes[index].fileURL = finalURL - themes[index].name = finalName.lowercased().replacingOccurrences(of: " ", with: "-") - if isActive { - self.activateTheme(themes[index]) - } - } - } catch { print("Error renaming theme: \(error.localizedDescription)") } diff --git a/CodeEdit/Features/Settings/Pages/ThemeSettings/ThemeSettingsThemeDetails.swift b/CodeEdit/Features/Settings/Pages/ThemeSettings/ThemeSettingsThemeDetails.swift index 000f92e9b..e420954f6 100644 --- a/CodeEdit/Features/Settings/Pages/ThemeSettings/ThemeSettingsThemeDetails.swift +++ b/CodeEdit/Features/Settings/Pages/ThemeSettings/ThemeSettingsThemeDetails.swift @@ -35,7 +35,6 @@ struct ThemeSettingsThemeDetails: View { VStack(spacing: 0) { Form { Group { - Text("Theme is\(isActive ? "" : " not") active") Section { TextField("Name", text: $theme.displayName) TextField("Author", text: $theme.author)