aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/ipc.lua2
-rw-r--r--plugins/settings.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/ipc.lua b/plugins/ipc.lua
index 0f9a172..16eab5d 100644
--- a/plugins/ipc.lua
+++ b/plugins/ipc.lua
@@ -866,7 +866,7 @@ end
local system_get_time = system.get_time
system.get_time = function()
- if settings_found and not settings.ui then
+ if settings_found and settings and not settings.ui then
return system_get_time()
end
diff --git a/plugins/settings.lua b/plugins/settings.lua
index 4b4ff04..ec722bc 100644
--- a/plugins/settings.lua
+++ b/plugins/settings.lua
@@ -12,7 +12,7 @@ local DocView = require "core.docview"
local widget_found, Widget = pcall(require, "libraries.widget")
if not widget_found then
core.error("Widget library not found: https://github.com/lite-xl/lite-xl-widgets")
- return
+ return false
end
local Label = require "libraries.widget.label"