Made ui_settings extern.

This commit is contained in:
Joseph Lenox 2018-06-14 17:10:44 -05:00
parent e15e628645
commit ec2582c4e4
2 changed files with 3 additions and 1 deletions

View File

@ -3,6 +3,8 @@
namespace Slic3r { namespace GUI {
std::unique_ptr<Settings> ui_settings {nullptr};
Settings::Settings() {
// Initialize fonts
_small_font = wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT);

View File

@ -153,7 +153,7 @@ std::vector<wxString> open_model(wxWindow* parent, wxWindow* top);
inline Slic3r::Point new_scale(const wxPoint& p) { return Slic3r::Point::new_scale(p.x, p.y); }
/// Singleton for UI settings.
std::unique_ptr<Settings> ui_settings {nullptr};
extern std::unique_ptr<Settings> ui_settings;
}} // namespace Slic3r::GUI