mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-13 09:47:58 -06:00
callback only for used device
This commit is contained in:
parent
66f203379c
commit
6396ec571a
2 changed files with 2 additions and 2 deletions
|
@ -30,7 +30,7 @@ public:
|
|||
std::string get_last_drive_path();
|
||||
std::vector<DriveData> get_all_drives();
|
||||
bool is_path_on_removable_drive(const std::string &path);
|
||||
void add_callback(std::function<void()> callback); // callback will notify every drive removal. to see if it was last used drive call is_last_drive_removed()
|
||||
void add_callback(std::function<void()> callback); // callback will notify only if device with last save path was removed
|
||||
void set_last_save_path(const std::string &path);
|
||||
bool is_last_drive_removed(); //if we dont need info about this drive, call reset_last_save_path();
|
||||
bool is_last_drive_removed_with_update(const long time = 0); // param as update()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue