Fix for #7734 - Saving Dialog: Values are truncated
Info line was "lost" after big code refactoring 4cdcfe60
+ MsgDialog: Added missed include
This commit is contained in:
parent
b4308f4245
commit
cd159ef298
@ -15,6 +15,7 @@
|
||||
#include "libslic3r/libslic3r.h"
|
||||
#include "libslic3r/Utils.hpp"
|
||||
#include "GUI.hpp"
|
||||
#include "format.hpp"
|
||||
#include "I18N.hpp"
|
||||
#include "ConfigWizard.hpp"
|
||||
#include "wxExtensions.hpp"
|
||||
|
@ -927,7 +927,7 @@ void UnsavedChangesDialog::build(Preset::Type type, PresetCollection* dependent_
|
||||
|
||||
void UnsavedChangesDialog::show_info_line(Action action, std::string preset_name)
|
||||
{
|
||||
if (action == Action::Undef && !m_has_long_strings)
|
||||
if (action == Action::Undef && !m_tree->has_long_strings())
|
||||
m_info_line->Hide();
|
||||
else {
|
||||
wxString text;
|
||||
|
@ -221,6 +221,7 @@ public:
|
||||
void item_value_changed(wxDataViewEvent& event);
|
||||
void set_em_unit(int em) { m_em_unit = em; }
|
||||
bool has_unselected_options();
|
||||
bool has_long_strings() { return m_has_long_strings; }
|
||||
|
||||
std::vector<std::string> options(Preset::Type type, bool selected);
|
||||
std::vector<std::string> selected_options();
|
||||
@ -240,7 +241,6 @@ class UnsavedChangesDialog : public DPIDialog
|
||||
wxStaticText* m_info_line { nullptr };
|
||||
wxCheckBox* m_remember_choice { nullptr };
|
||||
|
||||
bool m_has_long_strings { false };
|
||||
int m_save_btn_id { wxID_ANY };
|
||||
int m_move_btn_id { wxID_ANY };
|
||||
int m_continue_btn_id { wxID_ANY };
|
||||
|
Loading…
Reference in New Issue
Block a user