allocation removals and fixes

This commit is contained in:
Turánszki János
2024-06-04 07:32:26 +02:00
parent 8f03af5065
commit 00a72a7b30
10 changed files with 68 additions and 38 deletions
-4
View File
@@ -279,7 +279,6 @@ void GeneralWindow::Create(EditorComponent* _editor)
{
editor->SetLocalization(editor->default_localization);
editor->main->config.GetSection("options").Set("language", "English");
editor->main->config.Commit();
return;
}
@@ -289,7 +288,6 @@ void GeneralWindow::Create(EditorComponent* _editor)
{
editor->SetLocalization(editor->current_localization);
editor->main->config.GetSection("options").Set("language", language);
editor->main->config.Commit();
}
else
{
@@ -376,8 +374,6 @@ void GeneralWindow::Create(EditorComponent* _editor)
theme.font.shadow_color = wi::Color::Shadow();
break;
}
editor->main->config.Commit();
theme.tooltipImage = theme.image;
theme.tooltipImage.color = theme_color_idle;