aboutsummaryrefslogtreecommitdiff
path: root/plugins/scalestatus.lua
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/scalestatus.lua')
-rw-r--r--plugins/scalestatus.lua4
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