diff --git a/src/slic3r/GUI/DesktopIntegrationDialog.cpp b/src/slic3r/GUI/DesktopIntegrationDialog.cpp index fcb7472e649..9abd75d1e1b 100644 --- a/src/slic3r/GUI/DesktopIntegrationDialog.cpp +++ b/src/slic3r/GUI/DesktopIntegrationDialog.cpp @@ -202,7 +202,7 @@ bool create_desktop_file(const std::string& path, const std::string& data) // methods that actually do / undo desktop integration. Static to be accesible from anywhere. bool DesktopIntegrationDialog::is_integrated() { - const AppConfig *app_config = wxGetApp().app_config; + const AppConfig *app_config = wxGetApp().app_config.get(); std::string path(app_config->get("desktop_integration_app_path")); BOOST_LOG_TRIVIAL(debug) << "Desktop integration desktop file path: " << path; @@ -259,7 +259,7 @@ void DesktopIntegrationDialog::perform_desktop_integration() resolve_path_from_var("XDG_DATA_HOME", target_candidates); resolve_path_from_var("XDG_DATA_DIRS", target_candidates); - AppConfig *app_config = wxGetApp().app_config; + AppConfig *app_config = wxGetApp().app_config.get(); // suffix string to create different desktop file for alpha, beta. std::string version_suffix; @@ -424,7 +424,7 @@ void DesktopIntegrationDialog::perform_desktop_integration() } void DesktopIntegrationDialog::undo_desktop_intgration() { - const AppConfig *app_config = wxGetApp().app_config; + const AppConfig *app_config = wxGetApp().app_config.get(); // slicer .desktop std::string path = std::string(app_config->get("desktop_integration_app_path")); if (!path.empty()) { diff --git a/src/slic3r/GUI/GLCanvas3D.cpp b/src/slic3r/GUI/GLCanvas3D.cpp index cc3249646c4..a831834d481 100644 --- a/src/slic3r/GUI/GLCanvas3D.cpp +++ b/src/slic3r/GUI/GLCanvas3D.cpp @@ -1076,7 +1076,7 @@ void GLCanvas3D::set_last_arrange_settings(float new_value) { } ptr->previously_used_distance = new_value; - auto& appcfg = wxGetApp().app_config; + AppConfig *appcfg = wxGetApp().app_config.get(); std::string dist_key = "min_object_distance", rot_key = "enable_rotation"; dist_key += postfix; rot_key += postfix;