paint: fix plugin stop on config restore

This commit is contained in:
luboslenco
2026-07-18 15:55:27 +02:00
parent b83184d8fd
commit 954a5aeadb
+2 -2
View File
@@ -49,14 +49,14 @@ void box_preferences_interface_tab_restore_menu_import(char *path) {
void box_preferences_interface_tab_restore_menu_confirm(void *_) { void box_preferences_interface_tab_restore_menu_confirm(void *_) {
g_theme->ELEMENT_H = base_default_element_h; g_theme->ELEMENT_H = base_default_element_h;
config_restore();
box_preferences_set_scale();
if (g_config->plugins != NULL) { if (g_config->plugins != NULL) {
for (i32 i = 0; i < g_config->plugins->length; ++i) { for (i32 i = 0; i < g_config->plugins->length; ++i) {
char *f = g_config->plugins->buffer[i]; char *f = g_config->plugins->buffer[i];
plugin_stop(f); plugin_stop(f);
} }
} }
config_restore();
box_preferences_set_scale();
gc_unroot(box_preferences_files_plugin); gc_unroot(box_preferences_files_plugin);
box_preferences_files_plugin = NULL; box_preferences_files_plugin = NULL;
gc_unroot(box_preferences_files_keymap); gc_unroot(box_preferences_files_keymap);