removable drive manager - Windows part

This commit is contained in:
David Kocik 2019-11-26 14:19:29 +01:00
parent 77d6c97feb
commit ef12f35599
3 changed files with 195 additions and 0 deletions

View file

@ -21,6 +21,7 @@
#include <wx/string.h>
#include "I18N.hpp"
#include "RemovableDriveManager.hpp"
namespace Slic3r {
@ -357,6 +358,10 @@ 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().getLastDrivePath();
}
const auto it = m_storage.find("");
if (it != m_storage.end()) {
const auto it2 = it->second.find("last_output_path");