Do not open 'Did you know' notifications in gcodeviewer,

they make no sense and make slicer crash sometimes
This commit is contained in:
Lukas Matena 2021-08-04 10:20:59 +02:00
parent 9b19060334
commit 7d9cce1298

View file

@ -663,7 +663,7 @@ void GUI_App::post_init()
}
// show "Did you know" notification
if (app_config->get("show_hints") == "1")
if (app_config->get("show_hints") == "1" && ! is_gcode_viewer())
plater_->get_notification_manager()->push_hint_notification();
// The extra CallAfter() is needed because of Mac, where this is the only way