intermediary changes, plan to revert to mousearea for gestures + config load bugfixes
This commit is contained in:
@@ -60,7 +60,7 @@ Gpu::Gpu(QObject* parent) : TickingService(parent) {
|
||||
[this, configPath]() {
|
||||
QTimer::singleShot(100, this, [this, configPath]() {
|
||||
QFile file(configPath);
|
||||
if (file.exists()) {
|
||||
if (file.open(QIODevice::ReadOnly)) {
|
||||
QJsonDocument doc =
|
||||
QJsonDocument::fromJson(file.readAll());
|
||||
if (!doc.isNull()) {
|
||||
|
||||
@@ -44,7 +44,7 @@ TickingService::TickingService(QObject* parent)
|
||||
[this, configPath]() {
|
||||
QTimer::singleShot(100, this, [this, configPath]() {
|
||||
QFile file(configPath);
|
||||
if (!file.exists()) {
|
||||
if (!file.open(QIODevice::ReadOnly)) {
|
||||
return;
|
||||
}
|
||||
QJsonDocument doc = QJsonDocument::fromJson(file.readAll());
|
||||
|
||||
Reference in New Issue
Block a user