aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjgmdev <jgmdev@gmail.com>2023-01-06 18:29:18 -0400
committerjgmdev <jgmdev@gmail.com>2023-01-06 18:29:18 -0400
commit07d33a93090b5c8ae40141f1b80ae63b5110d1c7 (patch)
tree4b035fed69763b6c33c2bfd4a6b49b151d997cb4
parent351cd2d98f87898e84bb8a7fef0f970c4d94d38d (diff)
downloadlite-xl-plugins-07d33a93090b5c8ae40141f1b80ae63b5110d1c7.tar.gz
lite-xl-plugins-07d33a93090b5c8ae40141f1b80ae63b5110d1c7.zip
ipc: fixed issue when settings gui fails to load
-rw-r--r--manifest.json4
-rw-r--r--plugins/ipc.lua2
-rw-r--r--plugins/settings.lua2
3 files changed, 4 insertions, 4 deletions
diff --git a/manifest.json b/manifest.json
index 2fa19c5..d6be566 100644
--- a/manifest.json
+++ b/manifest.json
@@ -294,7 +294,7 @@
},
{
"description": "Adds inter-process communication support",
- "version": "0.1",
+ "version": "0.2",
"path": "plugins/ipc.lua",
"id": "ipc",
"mod_version": "3"
@@ -1039,7 +1039,7 @@
},
{
"description": "Provides a GUI to manage core and plugin settings, bindings and select color theme *([video](https://user-images.githubusercontent.com/1702572/169743674-ececae24-f6b7-4ff2-bfa2-c4762cd327d9.mp4))*. (depends on [`widget`](https://github.com/lite-xl/lite-xl-widgets))",
- "version": "0.2",
+ "version": "0.3",
"path": "plugins/settings.lua",
"id": "settings",
"mod_version": "3"
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"