diff options
| author | Matt Corallo <[email protected]> | 2017-07-07 17:09:55 -0400 |
|---|---|---|
| committer | Matt Corallo <[email protected]> | 2017-08-20 20:04:15 -0400 |
| commit | ee4d1493e2a871b26201580c5a990a1df7a5e3f7 (patch) | |
| tree | 68c3480279fbdfdff0d67dd624efdacfdcacd1d5 /src/ui_interface.h | |
| parent | Merge #10901: Fix constness of ArgsManager methods (diff) | |
| download | discoin-ee4d1493e2a871b26201580c5a990a1df7a5e3f7.tar.xz discoin-ee4d1493e2a871b26201580c5a990a1df7a5e3f7.zip | |
Drop upgrade-cancel callback registration for a generic "resumeable"
Instead of passing a StartShutdown reference all the way up from
txdb, give ShowProgress a "resumeable" boolean, which is used to
inform the user if the action will be resumed, but cancel is always
allowed by just calling StartShutdown().
Diffstat (limited to 'src/ui_interface.h')
| -rw-r--r-- | src/ui_interface.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ui_interface.h b/src/ui_interface.h index 762dd19b1..7f68c578e 100644 --- a/src/ui_interface.h +++ b/src/ui_interface.h @@ -94,11 +94,11 @@ public: /** A wallet has been loaded. */ boost::signals2::signal<void (CWallet* wallet)> LoadWallet; - /** Show progress e.g. for verifychain */ - boost::signals2::signal<void (const std::string &title, int nProgress)> ShowProgress; - - /** Set progress break action (possible "cancel button" triggers that action) */ - boost::signals2::signal<void (std::function<void(void)> action)> SetProgressBreakAction; + /** + * Show progress e.g. for verifychain. + * resume_possible indicates shutting down now will result in the current progress action resuming upon restart. + */ + boost::signals2::signal<void (const std::string &title, int nProgress, bool resume_possible)> ShowProgress; /** New block has been accepted */ boost::signals2::signal<void (bool, const CBlockIndex *)> NotifyBlockTip; |