diff options
author | Sjors Provoost <sjors@sprovoost.nl> | 2019-08-24 22:34:59 +0200 |
---|---|---|
committer | Sjors Provoost <sjors@sprovoost.nl> | 2019-08-24 22:39:47 +0200 |
commit | 1bbc49d2078ee53488e214d00eb47462687b05c5 (patch) | |
tree | b871a8813df5495f9aac952e2722619ab64fce99 /src/qt/intro.cpp | |
parent | 1957103786f97135f35ababc97efa1b481865eb0 (diff) |
[gui] intro: inform caller if intro was shown
Diffstat (limited to 'src/qt/intro.cpp')
-rw-r--r-- | src/qt/intro.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/qt/intro.cpp b/src/qt/intro.cpp index 102e37e471..0a18561109 100644 --- a/src/qt/intro.cpp +++ b/src/qt/intro.cpp @@ -180,8 +180,10 @@ void Intro::setDataDirectory(const QString &dataDir) } } -bool Intro::pickDataDirectory(interfaces::Node& node) +bool Intro::showIfNeeded(interfaces::Node& node, bool& did_show_intro) { + did_show_intro = false; + QSettings settings; /* If data directory provided on command line, no need to look at settings or show a picking dialog */ @@ -205,6 +207,7 @@ bool Intro::pickDataDirectory(interfaces::Node& node) Intro intro(0, node.getAssumedBlockchainSize(), node.getAssumedChainStateSize()); intro.setDataDirectory(dataDir); intro.setWindowIcon(QIcon(":icons/bitcoin")); + did_show_intro = true; while(true) { |