diff options
author | jgmdev <jgmdev@gmail.com> | 2023-01-06 18:29:18 -0400 |
---|---|---|
committer | jgmdev <jgmdev@gmail.com> | 2023-01-06 18:29:18 -0400 |
commit | 07d33a93090b5c8ae40141f1b80ae63b5110d1c7 (patch) | |
tree | 4b035fed69763b6c33c2bfd4a6b49b151d997cb4 /plugins | |
parent | 351cd2d98f87898e84bb8a7fef0f970c4d94d38d (diff) | |
download | lite-xl-plugins-07d33a93090b5c8ae40141f1b80ae63b5110d1c7.tar.gz lite-xl-plugins-07d33a93090b5c8ae40141f1b80ae63b5110d1c7.zip |
ipc: fixed issue when settings gui fails to load
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/ipc.lua | 2 | ||||
-rw-r--r-- | plugins/settings.lua | 2 |
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" |