aboutsummaryrefslogtreecommitdiff
path: root/src/qt/bitcoingui.h
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2018-10-19 10:39:25 +0300
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2018-12-06 18:23:31 +0200
commit93009618b6d72b6bb253cabc4a5813d7aea18a67 (patch)
tree27629130101d2f04b03d1ad558d54018d89bfebe /src/qt/bitcoingui.h
parentd387507aeca652a5569825af65243536f2ce26ea (diff)
Fix start with the `-min` option
When GUI starts with the `-min` option, the `Minimize to tray instead of the taskbar` option works as expected now.
Diffstat (limited to 'src/qt/bitcoingui.h')
-rw-r--r--src/qt/bitcoingui.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/qt/bitcoingui.h b/src/qt/bitcoingui.h
index dcaca10557..d38ae404d3 100644
--- a/src/qt/bitcoingui.h
+++ b/src/qt/bitcoingui.h
@@ -82,6 +82,11 @@ public:
#endif // ENABLE_WALLET
bool enableWallet = false;
+ /** Get the tray icon status.
+ Some systems have not "system tray" or "notification area" available.
+ */
+ bool hasTrayIcon() const { return trayIcon; }
+
protected:
void changeEvent(QEvent *e);
void closeEvent(QCloseEvent *event);