mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-14 08:35:54 +08:00
disable testing notification and monitor tab showing
This commit is contained in:
parent
7b8238a905
commit
da977db4c4
@ -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
|
||||
|
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user