From fa7d20a44df7122c104fd2d42505a7fdce425a80 Mon Sep 17 00:00:00 2001 From: YuSanka Date: Wed, 3 Apr 2024 10:37:31 +0200 Subject: [PATCH] DiffPresetDialog: Show "Undef category/group" just in Debug mode --- src/slic3r/GUI/UnsavedChangesDialog.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/slic3r/GUI/UnsavedChangesDialog.cpp b/src/slic3r/GUI/UnsavedChangesDialog.cpp index baff15378e..9276d35da4 100644 --- a/src/slic3r/GUI/UnsavedChangesDialog.cpp +++ b/src/slic3r/GUI/UnsavedChangesDialog.cpp @@ -1854,8 +1854,10 @@ void DiffPresetDialog::update_tree() Search::Option option = searcher.get_option(opt_key, get_full_label(opt_key, left_config), type); if (option.opt_key() != opt_key) { +#ifdef _DEBUG // temporary solution, just for testing m_tree->Append(opt_key, type, _L("Undef category"), _L("Undef group"), opt_key, left_val, right_val, "", "question"); +#endif // When founded option isn't the correct one. // It can be for dirty_options: "default_print_profile", "printer_model", "printer_settings_id", // because of they don't exist in searcher