diff options
author | Adam Harrison <adamdharrison@gmail.com> | 2021-06-14 20:43:57 -0400 |
---|---|---|
committer | Adam Harrison <adamdharrison@gmail.com> | 2021-08-17 09:52:24 -0400 |
commit | dafc573b7261912f35098c92381ac0f43a7353e5 (patch) | |
tree | 544c246afca1c5ae62dbc06ed13462b0b959ad2a /plugins/scalestatus.lua | |
parent | ad15f82e10a43bbe85a241c87bd01529ace386fd (diff) | |
download | lite-xl-plugins-dafc573b7261912f35098c92381ac0f43a7353e5.tar.gz lite-xl-plugins-dafc573b7261912f35098c92381ac0f43a7353e5.zip |
Removed scale plugin, and fixed scalestatus plugin to match master lite-xl core.
Diffstat (limited to 'plugins/scalestatus.lua')
-rw-r--r-- | plugins/scalestatus.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/scalestatus.lua b/plugins/scalestatus.lua index 2981523..e43cdd5 100644 --- a/plugins/scalestatus.lua +++ b/plugins/scalestatus.lua @@ -9,7 +9,7 @@ --]] local scale = require "plugins.scale" -- make sure plugin is installed and has get_scale field -if not scale.get_scale then +if not scale then local core = require "core" core.error("Plugin 'scale' needs to be updated, scalestatus inactive.") return false @@ -27,7 +27,7 @@ function StatusView:get_items() local t = { self.separator, - string.format(config.scalestatus_format, scale.get_scale() * 100), + string.format(config.scalestatus_format, scale.get() * 100), } for _, item in ipairs(t) do |