mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 02:22:17 +00:00
FIX:add mode for syscAMsInfoDialog
jira: none Change-Id: Iabfc9953f86cd08a2357a9197d6e1afe8d781d9f (cherry picked from commit eaeac42b19b322f56b501c0d2ce99c4a6b2fd050)
This commit is contained in:
@@ -5260,7 +5260,8 @@ void Tab::update_preset_choice()
|
||||
// Called by the UI combo box when the user switches profiles, and also to delete the current profile.
|
||||
// Select a preset by a name.If !defined(name), then the default preset is selected.
|
||||
// If the current profile is modified, user is asked to save the changes.
|
||||
bool Tab::select_preset(std::string preset_name, bool delete_current /*=false*/, const std::string& last_selected_ph_printer_name/* =""*/, bool force_select)
|
||||
bool Tab::select_preset(
|
||||
std::string preset_name, bool delete_current /*=false*/, const std::string &last_selected_ph_printer_name /* =""*/, bool force_select, bool force_no_transfer)
|
||||
{
|
||||
BOOST_LOG_TRIVIAL(info) << boost::format("select preset, name %1%, delete_current %2%")
|
||||
%preset_name %delete_current;
|
||||
@@ -5322,6 +5323,10 @@ bool Tab::select_preset(std::string preset_name, bool delete_current /*=false*/,
|
||||
}
|
||||
else if (printer_tab)
|
||||
no_transfer = true;
|
||||
|
||||
if (force_no_transfer) {
|
||||
no_transfer = true;
|
||||
}
|
||||
if (current_dirty && ! may_discard_current_dirty_preset(nullptr, preset_name, no_transfer) && !force_select) {
|
||||
canceled = true;
|
||||
BOOST_LOG_TRIVIAL(info) << boost::format("current dirty and cancelled");
|
||||
|
||||
Reference in New Issue
Block a user