Physical printers: Delete selected printer

+ Added context menu for the cog-button near the printer presets
This commit is contained in:
YuSanka 2020-06-24 12:28:00 +02:00
parent 89035febfa
commit 8ac839f427
4 changed files with 76 additions and 22 deletions

View file

@ -612,6 +612,9 @@ public:
// Delete the current preset, activate the first visible preset.
// returns true if the preset was deleted successfully.
bool delete_printer(const std::string& name);
// Delete the selected preset
// returns true if the preset was deleted successfully.
bool delete_selected_printer();
// Return the selected preset, without the user modifications applied.
PhysicalPrinter& get_selected_printer() { return m_printers[m_idx_selected]; }