From 3e8465c3b8e7c96faf0c0fe214f4dc43e3e6ac3e Mon Sep 17 00:00:00 2001 From: link2xt Date: Sun, 18 Jul 2021 01:23:07 +0300 Subject: Replace "Start IO" toggle with "Work offline" I/O is started by default. --- qml/main.qml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/qml/main.qml b/qml/main.qml index a6cc6f1..cd1af50 100644 --- a/qml/main.qml +++ b/qml/main.qml @@ -18,12 +18,12 @@ Kirigami.ApplicationWindow { globalDrawer: Kirigami.GlobalDrawer { header: Controls.Switch { - text: "Start IO" + text: "Work offline" onCheckedChanged: { if (checked) { - dcAccounts.startIo() - } else { dcAccounts.stopIo() + } else { + dcAccounts.startIo() } } } @@ -64,6 +64,8 @@ Kirigami.ApplicationWindow { pageStack.replace("qrc:/qml/ConfigurePage.qml", {context: selectedAccount, eventEmitter: eventEmitter}) } } + + dcAccounts.startIo() } onClosing: { -- cgit v1.2.3-54-g00ecf