Fix a UI block bug.

This commit is contained in:
Krad
2021-10-22 14:48:55 +08:00
parent 3e4a12861f
commit 1785953b8c
2 changed files with 20 additions and 16 deletions

View File

@@ -6,6 +6,7 @@
#define GUI_DEVICEMANAGER_H
#include <QObject>
#include <QThread>
class DeviceManager:public QObject {
Q_OBJECT
@@ -25,7 +26,9 @@ private:
int deviceInfTimerID = -1;
int lastStatus=-1;
bool previewing = false;
bool endLoop = false;
bool errorOccured = false;
QThread* previewDataCaller;
};