mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 02:22:17 +00:00
Feature/per vendor update (#13394)
* init work - refactored OrcaSlice side backend is not updated yet * end-to-end flow * Delete task.md --------- Co-authored-by: SoftFever <softfeverever@gmail.com>
This commit is contained in:
@@ -33,6 +33,7 @@
|
||||
|
||||
#include "GUI_App.hpp"
|
||||
#include "GUI_ObjectList.hpp"
|
||||
#include "slic3r/Utils/PresetUpdater.hpp"
|
||||
#include "Plater.hpp"
|
||||
#include "MainFrame.hpp"
|
||||
#include "format.hpp"
|
||||
@@ -2061,6 +2062,12 @@ void Tab::on_presets_changed()
|
||||
// Check if printer agent needs switching
|
||||
if (m_type == Preset::TYPE_PRINTER) {
|
||||
wxGetApp().switch_printer_agent();
|
||||
|
||||
// Trigger per-vendor preset update check
|
||||
const Preset& printer_preset = m_preset_bundle->printers.get_edited_preset();
|
||||
if (printer_preset.vendor) {
|
||||
wxGetApp().get_preset_updater()->check_vendor_update(printer_preset.vendor->id);
|
||||
}
|
||||
}
|
||||
|
||||
bool is_bbl_vendor_preset = m_preset_bundle->is_bbl_vendor();
|
||||
|
||||
Reference in New Issue
Block a user