chore: split color_scheme_editor

This commit is contained in:
2025-12-17 01:41:44 +03:00
parent 659c5f28e5
commit f7c290110e
17 changed files with 617 additions and 453 deletions

View File

@@ -369,11 +369,14 @@ void template_editor::save_template()
std::string template_content = m_editor.GetText();
std::ofstream out(template_file);
if (out.is_open())
if (!out.is_open())
{
out << template_content;
out.close();
m_validation_error = "Failed to write template file";
return;
}
out << template_content;
out.close();
clrsync::core::theme_template tmpl(trimmed_name, template_file.string(), trimmed_path);
tmpl.set_reload_command(m_reload_command);