diff --git a/src/GUI/MainFrame.cpp b/src/GUI/MainFrame.cpp index 8c1d3c0e4..029471f49 100644 --- a/src/GUI/MainFrame.cpp +++ b/src/GUI/MainFrame.cpp @@ -28,11 +28,10 @@ MainFrame::MainFrame(const wxString& title, const wxPoint& pos, const wxSize& si wxToolTip::SetAutoPop(TOOLTIP_TIMER); - // STUB: Initialize status bar with text. - /* # initialize status bar - $self->{statusbar} = Slic3r::GUI::ProgressStatusBar->new($self, -1); - $self->{statusbar}->SetStatusText("Version $Slic3r::VERSION - Remember to check for updates at http://slic3r.org/"); - $self->SetStatusBar($self->{statusbar}); */ + // initialize status bar + this->statusbar = new ProgressStatusBar(this, -1); + this->statusbar->SetStatusText("Version $Slic3r::VERSION - Remember to check for updates at http://slic3r.org/"); + this->SetStatusBar(this->statusbar); this->loaded = 1; diff --git a/src/GUI/MainFrame.hpp b/src/GUI/MainFrame.hpp index b067c6f9b..b073d0c48 100644 --- a/src/GUI/MainFrame.hpp +++ b/src/GUI/MainFrame.hpp @@ -17,6 +17,7 @@ #include "PresetEditor.hpp" #include "Settings.hpp" #include "GUI.hpp" +#include "ProgressStatusBar.hpp" namespace Slic3r { namespace GUI { @@ -47,6 +48,8 @@ private: std::shared_ptr gui_config; std::map preset_editor_tabs; + ProgressStatusBar* statusbar {new ProgressStatusBar(this, -1)}; + }; }} // Namespace Slic3r::GUI