diff options
author | kali kaneko (leap communications) <kali@leap.se> | 2021-06-22 17:10:26 +0200 |
---|---|---|
committer | kali kaneko (leap communications) <kali@leap.se> | 2021-06-22 18:04:46 +0200 |
commit | 45c13d49936009f095629ef6f6d82aae768b20f3 (patch) | |
tree | 98e15d3cc4f318053874381e7826b8e6500ad212 /gui/qml/logic.js | |
parent | 326dc2449a69c9ea97cb5c2936807e9045dc1aa7 (diff) |
[feat] only show donate dialog after first connect when due
- Cloases: #470
Diffstat (limited to 'gui/qml/logic.js')
-rw-r--r-- | gui/qml/logic.js | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/gui/qml/logic.js b/gui/qml/logic.js index 582b824..10ebfcd 100644 --- a/gui/qml/logic.js +++ b/gui/qml/logic.js @@ -1,5 +1,13 @@ -let status = 'off'; -let needsReconnect = false; +var status = 'off'; +var needsReconnect = false; + +function setNeedsReconnect(val) { + needsReconnect = val; +} + +function getNeedsReconnect() { + return needsReconnect; +} function setStatus(st) { status = st; @@ -9,12 +17,8 @@ function getStatus() { return status; } -function setNeedsReconnect(val) { - needsReconnect = val; -} - -function getNeedsReconnect() { - return needsReconnect; +function setNeedsDonate(val) { + needsDonate = val; } function toHuman(st) { |