mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 16:57:53 -06:00
check if last path is on rem drive
This commit is contained in:
parent
fdf159af42
commit
97a9f245f9
4 changed files with 39 additions and 7 deletions
|
@ -21,7 +21,6 @@
|
|||
|
||||
#include <wx/string.h>
|
||||
#include "I18N.hpp"
|
||||
#include "RemovableDriveManager.hpp"
|
||||
|
||||
namespace Slic3r {
|
||||
|
||||
|
@ -358,10 +357,7 @@ void AppConfig::update_skein_dir(const std::string &dir)
|
|||
|
||||
std::string AppConfig::get_last_output_dir(const std::string &alt) const
|
||||
{
|
||||
if (GUI::RemovableDriveManager::getInstance().update())
|
||||
{
|
||||
return GUI::RemovableDriveManager::getInstance().get_last_drive_path();
|
||||
}
|
||||
|
||||
const auto it = m_storage.find("");
|
||||
if (it != m_storage.end()) {
|
||||
const auto it2 = it->second.find("last_output_path");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue