mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:47:45 +00:00
WindowServer+LibGUI+Taskbar: Store window progress as Optional<int>
We were previously using the magical constant -1 to signify that a window had no progress state. Be more explicit an use an Optional. :^)
This commit is contained in:
parent
8af7cda17a
commit
cc6db526a6
9 changed files with 20 additions and 21 deletions
|
@ -190,7 +190,7 @@ public:
|
|||
|
||||
Window* find_parent_window();
|
||||
|
||||
void set_progress(int);
|
||||
void set_progress(Optional<int>);
|
||||
|
||||
void update_cursor(Badge<Widget>) { update_cursor(); }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue