Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Kocik <kocikdav@gmail.com>2019-11-27 17:47:37 +0300
committerDavid Kocik <kocikdav@gmail.com>2019-12-13 15:51:45 +0300
commit1790c795fbdc4a2cca1006bd0e4f686f0e77ca2e (patch)
tree45e459b3f50b10719527588dd9cd9d801d47f842 /src/slic3r/GUI/RemovableDriveManager.hpp
parent6e9a37e81bd4e91f59a68c3a2104aa0c7cfa3cab (diff)
rdm update every 2 seconds
Diffstat (limited to 'src/slic3r/GUI/RemovableDriveManager.hpp')
-rw-r--r--src/slic3r/GUI/RemovableDriveManager.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/slic3r/GUI/RemovableDriveManager.hpp b/src/slic3r/GUI/RemovableDriveManager.hpp
index 3de9d72ce..c83b8033c 100644
--- a/src/slic3r/GUI/RemovableDriveManager.hpp
+++ b/src/slic3r/GUI/RemovableDriveManager.hpp
@@ -24,7 +24,7 @@ public:
void operator=(RemovableDriveManager const&) = delete;
//update() searches for removable devices, returns false if empty.
- static bool update();
+ static bool update(long time = 0); //time = 0 is forced update
static bool is_drive_mounted(const std::string &path);
static void eject_drive(const std::string &path);
static std::string get_last_drive_path();
@@ -34,6 +34,7 @@ private:
RemovableDriveManager(){}
static void search_for_drives();
static std::vector<DriveData> m_current_drives;
+ static long m_last_update;
#if _WIN32
#else
static void search_path(const std::string &path, const dev_t &parentDevID);