refactoring

This commit is contained in:
David Kocik 2019-11-28 13:50:58 +01:00
parent 649f3a2c3e
commit 735308b794
4 changed files with 22 additions and 22 deletions

View file

@ -4662,11 +4662,11 @@ void Plater::export_gcode()
}
default_output_file = fs::path(Slic3r::fold_utf8_to_ascii(default_output_file.string()));
auto start_dir = wxGetApp().app_config->get_last_output_dir(default_output_file.parent_path().string());
if (GUI::RemovableDriveManager::getInstance().update())
if (GUI::RemovableDriveManager::get_instance().update())
{
if (!RemovableDriveManager::getInstance().is_path_on_removable_drive(start_dir))
if (!RemovableDriveManager::get_instance().is_path_on_removable_drive(start_dir))
{
start_dir = RemovableDriveManager::getInstance().get_last_drive_path();
start_dir = RemovableDriveManager::get_instance().get_last_drive_path();
}
}
wxFileDialog dlg(this, (printer_technology() == ptFFF) ? _(L("Save G-code file as:")) : _(L("Save SL1 file as:")),