mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:37:36 +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
|
@ -54,7 +54,7 @@ endpoint WindowServer
|
|||
SetWindowTitle(i32 window_id, [UTF8] String title) => ()
|
||||
GetWindowTitle(i32 window_id) => ([UTF8] String title)
|
||||
|
||||
SetWindowProgress(i32 window_id, i32 progress) =|
|
||||
SetWindowProgress(i32 window_id, Optional<i32> progress) =|
|
||||
|
||||
SetWindowModified(i32 window_id, bool modified) =|
|
||||
IsWindowModified(i32 window_id) => (bool modified)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue