diff options
| author | jacqueline <me@jacqueline.id.au> | 2024-08-29 15:52:34 +1000 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2024-08-29 15:52:34 +1000 |
| commit | 91eaed4b37c7cda29103d3478df3e2c6356f8396 (patch) | |
| tree | de317a6a9b595ee744058db55af0f3f40ea89af8 /lua/playing.lua | |
| parent | 96a224c0df4f647b3e5dbbcbbedad3a1d38470ba (diff) | |
| download | tangara-fw-91eaed4b37c7cda29103d3478df3e2c6356f8396.tar.gz | |
use snake_case consistently in lua function names
Diffstat (limited to 'lua/playing.lua')
| -rw-r--r-- | lua/playing.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lua/playing.lua b/lua/playing.lua index ff503a6c..b3b4ec4d 100644 --- a/lua/playing.lua +++ b/lua/playing.lua @@ -20,7 +20,7 @@ local icon_enabled_class = "icon_enabled" local icon_disabled_class = "icon_disabled" return screen:new { - createUi = function(self) + create_ui = function(self) self.root = lvgl.Object(nil, { flex = { flex_direction = "column", @@ -281,9 +281,9 @@ return screen:new { end), } end, - onShown = function() is_now_playing_shown = true end, - onHidden = function() is_now_playing_shown = false end, - pushIfNotShown = function(self) + on_show = function() is_now_playing_shown = true end, + on_hide = function() is_now_playing_shown = false end, + push_if_not_shown = function(self) if not is_now_playing_shown then backstack.push(self:new()) end |
