disable testing notification and monitor tab showing

This commit is contained in:
David Kocik 2023-12-20 15:19:13 +01:00
parent 7b8238a905
commit da977db4c4
2 changed files with 6 additions and 6 deletions

View File

@ -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) { if(url.find("http://") != 0 && url.find("https://") != 0) {
url = "https://" + url; url = "https://" + url;
} }
#if 0
if (!show) { if (!show) {
this->mainframe->select_tab(size_t(0)); this->mainframe->select_tab(size_t(0));
mainframe->remove_monitor_tab(); 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(5));
this->mainframe->select_tab(size_t(0)); this->mainframe->select_tab(size_t(0));
} }
#endif
} }
} // GUI } // GUI
} //Slic3r } //Slic3r

View File

@ -929,12 +929,11 @@ Plater::priv::priv(Plater *q, MainFrame *main_frame)
if (succ) { if (succ) {
if (printers_changed) 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 %1%:\n%2%", (printers_changed ? "changed" : "didn't changed"), text);
std::string out = GUI::format("Printers in your PrusaConnect team:\n%1%", 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->close_notification_of_type(NotificationType::PrusaConnectPrinters);
this->notification_manager->push_notification(NotificationType::PrusaConnectPrinters, NotificationManager::NotificationLevel::ImportantNotificationLevel, out); //this->notification_manager->push_notification(NotificationType::PrusaConnectPrinters, NotificationManager::NotificationLevel::ImportantNotificationLevel, out);
// this should be done only if printers_changed
sidebar->update_printer_presets_combobox(); sidebar->update_printer_presets_combobox();
} }
} else { } else {