aboutsummaryrefslogtreecommitdiff
path: root/plugins/settings.lua
diff options
context:
space:
mode:
authorjgmdev <jgmdev@gmail.com>2022-06-17 15:58:50 -0400
committerjgmdev <jgmdev@gmail.com>2022-06-17 15:58:50 -0400
commit3e8e08ccf0ba7d88c333af9448be9a9b3adc8e06 (patch)
tree78f273b1c66432292d996d17535abb53879133df /plugins/settings.lua
parent72a53f3f1f4084fe92e1bd6d67170030be4f24cc (diff)
downloadlite-xl-plugins-3e8e08ccf0ba7d88c333af9448be9a9b3adc8e06.tar.gz
lite-xl-plugins-3e8e08ccf0ba7d88c333af9448be9a9b3adc8e06.zip
settings: fix theme loading on MacOSX when fd's have been exceeded
Diffstat (limited to 'plugins/settings.lua')
-rw-r--r--plugins/settings.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/settings.lua b/plugins/settings.lua
index 0387886..a02b9b3 100644
--- a/plugins/settings.lua
+++ b/plugins/settings.lua
@@ -1564,7 +1564,9 @@ function core.run()
-- apply user chosen color theme
if settings.config.theme and settings.config.theme ~= "default" then
- core.reload_module("colors." .. settings.config.theme)
+ core.try(function()
+ core.reload_module("colors." .. settings.config.theme)
+ end)
end
core_run()