Merge branch 'testing' into newfx

This commit is contained in:
ccMSC
2015-12-31 02:22:53 -07:00
4 changed files with 7 additions and 4 deletions
+1 -1
View File
@@ -1 +1 @@
beta-v0.2.2+t05
beta-v0.2.2+t06
+1 -1
View File
@@ -266,7 +266,7 @@ void Kb::save(){
void Kb::autoSave(){
quint64 now = QDateTime::currentMSecsSinceEpoch();
if(now >= lastAutoSave + 15 * 1000 && !CkbSettings::isBusy()){
if(needsSave() && now >= lastAutoSave + 15 * 1000 && !CkbSettings::isBusy()){
save();
lastAutoSave = now;
}
+4 -2
View File
@@ -80,8 +80,6 @@ public:
void load();
void save();
bool needsSave() const;
// Auto-save every 15s (if settings have changed, and no other writes are in progress)
void autoSave();
void hwSave();
@@ -104,8 +102,12 @@ signals:
void fwUpdateFinished(bool succeeded);
public slots:
// Send lighting and settings to the driver
void frameUpdate();
// Auto-save every 15s (if settings have changed, and no other writes are in progress)
void autoSave();
private slots:
// Processes lines read from the notification node
void readNotify(QString line);
+1
View File
@@ -141,6 +141,7 @@ void KbManager::scanKeyboards(){
emit kbConnected(kb);
kb->load();
connect(_eventTimer, SIGNAL(timeout()), kb, SLOT(frameUpdate()));
connect(_scanTimer, SIGNAL(timeout()), kb, SLOT(autoSave()));
}
}