mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-19 12:47:50 -06:00
set_did_eject method
This commit is contained in:
parent
7e4e1745af
commit
146b942641
3 changed files with 6 additions and 0 deletions
|
@ -5050,6 +5050,7 @@ void Plater::drive_ejected_callback()
|
||||||
{
|
{
|
||||||
if (RemovableDriveManager::get_instance().get_did_eject())
|
if (RemovableDriveManager::get_instance().get_did_eject())
|
||||||
{
|
{
|
||||||
|
RemovableDriveManager::get_instance().set_did_eject(false);
|
||||||
wxString message = "Unmounting succesesful. The device " + RemovableDriveManager::get_instance().get_last_save_name() + "(" + RemovableDriveManager::get_instance().get_last_save_path() + ")" + " can now be safely removed from the computer.";
|
wxString message = "Unmounting succesesful. The device " + RemovableDriveManager::get_instance().get_last_save_name() + "(" + RemovableDriveManager::get_instance().get_last_save_path() + ")" + " can now be safely removed from the computer.";
|
||||||
wxMessageBox(message);
|
wxMessageBox(message);
|
||||||
}
|
}
|
||||||
|
|
|
@ -572,4 +572,8 @@ bool RemovableDriveManager::get_did_eject()
|
||||||
{
|
{
|
||||||
return m_did_eject;
|
return m_did_eject;
|
||||||
}
|
}
|
||||||
|
void RemovableDriveManager::set_did_eject(const bool b)
|
||||||
|
{
|
||||||
|
m_did_eject = b;
|
||||||
|
}
|
||||||
}}//namespace Slicer::Gui
|
}}//namespace Slicer::Gui
|
||||||
|
|
|
@ -56,6 +56,7 @@ public:
|
||||||
void set_is_writing(const bool b);
|
void set_is_writing(const bool b);
|
||||||
bool get_is_writing();
|
bool get_is_writing();
|
||||||
bool get_did_eject();
|
bool get_did_eject();
|
||||||
|
void set_did_eject(const bool b);
|
||||||
std::string get_drive_name(const std::string& path);
|
std::string get_drive_name(const std::string& path);
|
||||||
private:
|
private:
|
||||||
RemovableDriveManager();
|
RemovableDriveManager();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue