From 07d33a93090b5c8ae40141f1b80ae63b5110d1c7 Mon Sep 17 00:00:00 2001 From: jgmdev Date: Fri, 6 Jan 2023 18:29:18 -0400 Subject: ipc: fixed issue when settings gui fails to load --- plugins/ipc.lua | 2 +- plugins/settings.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins') 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" -- cgit v1.2.3