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:
authorEnrico Turri <enricoturri@seznam.cz>2019-11-25 14:45:49 +0300
committerEnrico Turri <enricoturri@seznam.cz>2019-11-25 14:45:49 +0300
commitdf3e47e093deab88fe6365039ae82d43264c6cb9 (patch)
tree791b51a2f5199aaf12309e97fb765602056a4e96 /src/slic3r/GUI/Mouse3DController.cpp
parenteee65749d95d78d5996110471e63cfad6d1512e8 (diff)
Another attempt to fix build on Linux (due to ab00f501f1363802282986ea9ab86d2e305bc24d)
Diffstat (limited to 'src/slic3r/GUI/Mouse3DController.cpp')
-rw-r--r--src/slic3r/GUI/Mouse3DController.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/slic3r/GUI/Mouse3DController.cpp b/src/slic3r/GUI/Mouse3DController.cpp
index 38840fbdf..e69ef4857 100644
--- a/src/slic3r/GUI/Mouse3DController.cpp
+++ b/src/slic3r/GUI/Mouse3DController.cpp
@@ -333,13 +333,13 @@ void Mouse3DController::render_settings_dialog(unsigned int canvas_width, unsign
bool Mouse3DController::connect_device()
{
- static const long long DETECTION_TIME = 2; // seconds
+ static const long long DETECTION_TIME_MS = 2000; // seconds
if (is_device_connected())
return false;
// check time since last detection took place
- if (std::chrono::duration_cast<std::chrono::seconds>(std::chrono::high_resolution_clock::now() - m_last_time).count() < DETECTION_TIME)
+ if (std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::high_resolution_clock::now() - m_last_time).count() < DETECTION_TIME_MS)
return false;
m_last_time = std::chrono::high_resolution_clock::now();