mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-16 04:25:58 +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) {
|
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
|
||||||
|
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user