From da977db4c4cdab79ed73c1b5a71940773866ff9a Mon Sep 17 00:00:00 2001 From: David Kocik Date: Wed, 20 Dec 2023 15:19:13 +0100 Subject: [PATCH] disable testing notification and monitor tab showing --- src/slic3r/GUI/GUI_App.cpp | 3 ++- src/slic3r/GUI/Plater.cpp | 9 ++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/slic3r/GUI/GUI_App.cpp b/src/slic3r/GUI/GUI_App.cpp index 7a71ca9d5c..dbc158fa9d 100644 --- a/src/slic3r/GUI/GUI_App.cpp +++ b/src/slic3r/GUI/GUI_App.cpp @@ -3679,7 +3679,7 @@ void GUI_App::show_monitor_tab(bool show, const std::string& address/* = {}*/) if(url.find("http://") != 0 && url.find("https://") != 0) { url = "https://" + url; } - +#if 0 if (!show) { this->mainframe->select_tab(size_t(0)); mainframe->remove_monitor_tab(); @@ -3692,6 +3692,7 @@ void GUI_App::show_monitor_tab(bool show, const std::string& address/* = {}*/) this->mainframe->select_tab(size_t(5)); this->mainframe->select_tab(size_t(0)); } +#endif } } // GUI } //Slic3r diff --git a/src/slic3r/GUI/Plater.cpp b/src/slic3r/GUI/Plater.cpp index 3a9ee15e08..27de9b7011 100644 --- a/src/slic3r/GUI/Plater.cpp +++ b/src/slic3r/GUI/Plater.cpp @@ -929,12 +929,11 @@ Plater::priv::priv(Plater *q, MainFrame *main_frame) if (succ) { if (printers_changed) { - // this could be moved outside if to notify for "no change" //std::string out = GUI::format("Printers in your PrusaConnect team %1%:\n%2%", (printers_changed ? "changed" : "didn't changed"), text); - std::string out = GUI::format("Printers in your PrusaConnect team:\n%1%", text); - this->notification_manager->close_notification_of_type(NotificationType::PrusaConnectPrinters); - this->notification_manager->push_notification(NotificationType::PrusaConnectPrinters, NotificationManager::NotificationLevel::ImportantNotificationLevel, out); - // this should be done only if printers_changed + //std::string out = GUI::format("Printers in your PrusaConnect team:\n%1%", text); + //this->notification_manager->close_notification_of_type(NotificationType::PrusaConnectPrinters); + //this->notification_manager->push_notification(NotificationType::PrusaConnectPrinters, NotificationManager::NotificationLevel::ImportantNotificationLevel, out); + sidebar->update_printer_presets_combobox(); } } else {