Skip to main content

Module status_bar

Module status_bar 

Source
Expand description

The strip along the bottom of a window.

A status bar is where a desktop tool says what is true right now: which branch, how many problems, whether the indexer is still running. Every one of those facts belongs to the host. The bar draws what it is given and invents nothing — an item with no state carries no state, rather than a reassuring green dot nobody asked for.

§Stale is not current

AsyncValue already separates a value from what is happening to it, which is what lets a failed refresh keep the last verified number on screen. StatusItem::tracking reads that vocabulary straight: a value whose status is Refreshing or Error while a value is still held is drawn with its last verified text and the word stale beside it, and publishes stale as its value. It is never drawn as current.

Structs§

StatusBar
The strip along the bottom of a window.
StatusItem
One thing the bar says.

Enums§

StatusGroup
Which group an item sits in.