diff options
-rw-r--r-- | src/session.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/session.cpp b/src/session.cpp index eefa337..f10c3dc 100644 --- a/src/session.cpp +++ b/src/session.cpp @@ -7,9 +7,6 @@ Session::Session(QObject *parent, MainQMLAdaptor* main_gui) : QObject(parent) { _main_gui = main_gui; - statusTimer = new QTimer(this); - connect(statusTimer, &QTimer::timeout, this, &Session::statusTimerEvent); - // QML -> MainQMLAdaptor::handleConnectButtonClick --onConnectButtonClick--> this::handleConnectButtonClick QObject::connect(_main_gui, SIGNAL(onConnectButtonClick(bool)), @@ -37,7 +34,8 @@ Session::Session(QObject *parent, MainQMLAdaptor* main_gui) : QObject(parent) { } void Session::statusTimerEvent() { - this->refresh_status(this->getId()); + qDebug() << "Status timer event triggered"; + this->refresh_status_request_dbus(this->getId()); } void Session::init_vars() { @@ -51,8 +49,6 @@ void Session::init_vars() { _main_gui->setStatusIndicator(false); _minimizedBefore = false; - - this->statusTimer->stop(); } QString Session::getStatus() { |