Skip to content

Commit

Permalink
test fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
supermerill committed Jan 27, 2024
1 parent 1cc1395 commit e8899df
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/slic3r/GUI/DesktopIntegrationDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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()) {
Expand Down
2 changes: 1 addition & 1 deletion src/slic3r/GUI/GLCanvas3D.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e8899df

Please sign in to comment.