Cleaner flashing code (#774)

This commit is contained in:
apa420
2018-10-07 12:55:44 +02:00
committed by pajlada
parent 767197ab48
commit bb6c2b6135
5 changed files with 15 additions and 22 deletions
+10
View File
@@ -444,6 +444,16 @@ void WindowManager::save()
file.flush();
}
void WindowManager::sendAlert()
{
int flashDuration = 2500;
if (getSettings()->longAlerts) {
flashDuration = 0;
}
QApplication::alert(getApp()->windows->getMainWindow().window(),
flashDuration);
}
void WindowManager::encodeNodeRecusively(SplitNode *node, QJsonObject &obj)
{
switch (node->getType()) {