diff options
author | Jonas Dreßler <verdre@v0yd.nl> | 2022-01-29 00:31:00 +0100 |
---|---|---|
committer | Jonas Dreßler <verdre@v0yd.nl> | 2023-04-25 17:17:41 +0200 |
commit | 98cfce0ebea9c5adf1dcfaddcb0cdce66a57a210 (patch) | |
tree | 886a1565352234339d5ff812fec81b3fb28c7fbf | |
parent | 9eea48536a6af497b90d815edc3d3141c5764813 (diff) | |
download | gnome-shell-98cfce0ebea9c5adf1dcfaddcb0cdce66a57a210.tar.gz |
screencastService: Use strings for states
Using strings instead of numbers allows for easier debugging, it means
we can just log the state itself.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2197>
-rw-r--r-- | js/dbusServices/screencast/screencastService.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/js/dbusServices/screencast/screencastService.js b/js/dbusServices/screencast/screencastService.js index 7c0810567..0a88b48f1 100644 --- a/js/dbusServices/screencast/screencastService.js +++ b/js/dbusServices/screencast/screencastService.js @@ -29,16 +29,16 @@ const DEFAULT_FRAMERATE = 30; const DEFAULT_DRAW_CURSOR = true; const PipelineState = { - INIT: 0, - PLAYING: 1, - FLUSHING: 2, - STOPPED: 3, + INIT: 'INIT', + PLAYING: 'PLAYING', + FLUSHING: 'FLUSHING', + STOPPED: 'STOPPED', }; const SessionState = { - INIT: 0, - ACTIVE: 1, - STOPPED: 2, + INIT: 'INIT', + ACTIVE: 'ACTIVE', + STOPPED: 'STOPPED', }; var Recorder = class { |