[Moveonly] Create ui_interface.cpp #7787

pull MarcoFalke wants to merge 2 commits into bitcoin:master from MarcoFalke:Mf1604-move-ui-helpers changing 6 files +56 −58
  1. MarcoFalke commented at 1:30 PM on April 2, 2016: member

    Should be trivial to review, since it's move only besides a missing return true;.

  2. [ui] Move InitError, InitWarning, AmountErrMsg fabbf80f2f
  3. paveljanik commented at 2:51 PM on April 2, 2016: contributor

    Concept ACK.

    I think that the return true is to have the same prototypes of both Warning and Error functions. Is it worth it?

  4. MarcoFalke commented at 3:05 PM on April 2, 2016: member

    Is it worth it?

    No, InitError should fail and trigger a shutdown. InitWarning, however, should not trigger a shutdown and continue execution. Thus the return value is not only unused but also misleading.

  5. paveljanik commented at 3:10 PM on April 2, 2016: contributor

    @MarcoFalke Of course I agree with you :-)

  6. jonasschnelli commented at 6:01 PM on April 2, 2016: contributor

    Concept ACK. Not sure if the function names should contain the Init* part (like InitError() and InitWarning()). From the ui_interface perspective, the error/warning is unrelated to the init process.

  7. jonasschnelli added the label Refactoring on Apr 2, 2016
  8. MarcoFalke commented at 8:53 AM on April 3, 2016: member

    the error/warning is unrelated to the init process.

    This is a valid point, but I think there is no actual use case for a modal pop up other than in the init process. I'd rather keep the old name, and change it when there is a valid use case for a blocking dialog.

  9. laanwj commented at 12:34 PM on April 3, 2016: member

    Concept ACK

  10. MarcoFalke commented at 7:31 PM on April 18, 2016: member

    Anything holding this back?

  11. laanwj commented at 1:01 PM on April 19, 2016: member

    Nit: the UI interface should be in bitcoin_server.a, not bitcoin_util.a. It should not be used by the other tools, just bitcoind and bitcoin-qt.

  12. Move ui_interface.cpp to libbitcoin_server_a_SOURCES
    It is only needed by bitcoind and bitcoin-qt
    fa10ce6a6d
  13. MarcoFalke commented at 2:09 PM on April 19, 2016: member

    Addressed nit

  14. laanwj merged this on Apr 19, 2016
  15. laanwj closed this on Apr 19, 2016

  16. laanwj referenced this in commit 04a2937357 on Apr 19, 2016
  17. MarcoFalke deleted the branch on Apr 19, 2016
  18. codablock referenced this in commit 63bb0d935c on Sep 16, 2017
  19. codablock referenced this in commit ee11429838 on Sep 19, 2017
  20. codablock referenced this in commit bacc864640 on Dec 20, 2017
  21. DrahtBot locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-17 06:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me