mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-07-31 15:01:58 +08:00
notification about printer change
This commit is contained in:
parent
55525d2ebf
commit
161d3f40d4
@ -5842,6 +5842,9 @@ void Plater::connect_gcode()
|
||||
assert(preset_id != size_t(-1));
|
||||
preset_bundle->printers.select_preset(preset_id);
|
||||
wxGetApp().get_tab(Preset::Type::TYPE_PRINTER)->select_preset(preset->name);
|
||||
p->notification_manager->close_notification_of_type(NotificationType::PrusaConnectPrinters);
|
||||
p->notification_manager->push_notification(NotificationType::PrusaConnectPrinters, NotificationManager::NotificationLevel::ImportantNotificationLevel, format(_u8L("Changed Printer to %1%."), preset->name));
|
||||
select_view_3D("3D");
|
||||
return;
|
||||
}
|
||||
|
||||
@ -5852,6 +5855,9 @@ void Plater::connect_gcode()
|
||||
assert(preset_id != size_t(-1));
|
||||
preset_bundle->printers.select_preset(preset_id);
|
||||
wxGetApp().get_tab(Preset::Type::TYPE_PRINTER)->select_preset(preset->name);
|
||||
p->notification_manager->close_notification_of_type(NotificationType::PrusaConnectPrinters);
|
||||
p->notification_manager->push_notification(NotificationType::PrusaConnectPrinters, NotificationManager::NotificationLevel::ImportantNotificationLevel, format(_u8L("Changed Printer to %1%."), preset->name));
|
||||
select_view_3D("3D");
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -224,6 +224,7 @@ public:
|
||||
bool is_background_process_update_scheduled() const;
|
||||
void suppress_background_process(const bool stop_background_process) ;
|
||||
void send_gcode();
|
||||
void send_gcode_inner(DynamicPrintConfig* physical_printer_config);
|
||||
void eject_drive();
|
||||
void connect_gcode();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user