Blockchain hover is not being updated #2233

issue schildbach opened this issue on January 29, 2013
  1. schildbach commented at 10:37 AM on January 29, 2013: contributor

    When I hover my mouse over the green checkmark in the status bar at the bottom, I get something like "Last block was generated 31 seconds ago". However, that value is frozen until the next block is received. I'd expect it to change every second.

    This is on current master.

  2. laanwj commented at 10:51 AM on January 29, 2013: member

    Yeah I think the most sensible solution would be to generate the message when the tooltip is requested, not when a block comes in (not enough), or every second (overkill).

  3. schildbach commented at 12:17 PM on January 29, 2013: contributor

    What about tooltip requested AND when a block comes in? Both is a rare event, but combined it would be powerful enough: You can request an update by re-hovering and you can also just watch the blocks flow in by continuing to hover.

  4. laanwj commented at 12:45 PM on January 29, 2013: member

    No, you can't do the second. Qt never updates tooltips that are open whatever you do. You need to re-hover to request an update.

  5. Diapolo commented at 2:36 PM on January 29, 2013: none

    #2227 is also related to this, as updating only happens on a new block. Simplest solution would be to throw away the cached values and update on timer, guess we currently use 500ms intervals, right?

  6. schildbach commented at 3:17 PM on January 29, 2013: contributor

    @laanwj In this case, I would avoid using timespans with second precision. Use the term "less than a minute ago", that's accurate enough. And you don't expect it to increment under your eye.

  7. laanwj commented at 3:30 PM on January 29, 2013: member

    Agreed, it doesn't really need to be that precise at all. I prefer that solution to franctically updating on a timer. There's the debug window for "real time" precise stats.

  8. Diapolo commented at 8:05 PM on January 29, 2013: none

    @laanwj I prefer that solution to franctically updating on a timer. I dunno what franctically means, sorry ;). Are you fine with a pull that removes cached values from ClientModel::updateTimer() so that statusbar and so on get's updated via an interval?

  9. laanwj commented at 8:31 PM on January 29, 2013: member

    No, please only update if something is changed, like now.

  10. Diapolo commented at 8:33 PM on January 29, 2013: none

    Well then this and my other problem are not solvable via timer and as I said I don't understand what you consider a solution for this cases then.

  11. laanwj commented at 1:17 PM on March 3, 2013: member

    See #2334

  12. laanwj closed this on Mar 3, 2013

  13. 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-16 03:16 UTC

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