Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuSanka <yusanka@gmail.com>2018-10-02 14:23:38 +0300
committerYuSanka <yusanka@gmail.com>2018-10-02 14:30:59 +0300
commit40022861c8031bcdf25031d41bd29042a48ca22d (patch)
tree30a93891feb127bc22030ecd83ed4ed9969ebf6c /src/slic3r/GUI/Preferences.cpp
parent08c69057516dfb90a83ec17099c545748855dbc8 (diff)
Removed Localization to GUI_App
+ cleaned code from some global variables (App, AppConfig, PresetBundle, MainFrame, tab_panels..)
Diffstat (limited to 'src/slic3r/GUI/Preferences.cpp')
-rw-r--r--src/slic3r/GUI/Preferences.cpp14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/slic3r/GUI/Preferences.cpp b/src/slic3r/GUI/Preferences.cpp
index 89a8ead92..2037572da 100644
--- a/src/slic3r/GUI/Preferences.cpp
+++ b/src/slic3r/GUI/Preferences.cpp
@@ -5,11 +5,10 @@
namespace Slic3r {
namespace GUI {
-PreferencesDialog::PreferencesDialog(wxWindow* parent, int event_preferences) :
- wxDialog(parent, wxID_ANY, _(L("Preferences")), wxDefaultPosition, wxDefaultSize),
- m_event_preferences(event_preferences) {
- build();
- }
+PreferencesDialog::PreferencesDialog(wxWindow* parent) :
+ wxDialog(parent, wxID_ANY, _(L("Preferences")), wxDefaultPosition, wxDefaultSize) {
+ build();
+}
void PreferencesDialog::build()
{
@@ -124,10 +123,7 @@ void PreferencesDialog::accept()
Close(); // needed on Linux
// Nothify the UI to update itself from the ini file.
- if (m_event_preferences > 0) {
- wxCommandEvent event(m_event_preferences);
- get_app()->ProcessEvent(event);
- }
+ wxGetApp().update_ui_from_settings();
}
} // GUI