From 3e8e08ccf0ba7d88c333af9448be9a9b3adc8e06 Mon Sep 17 00:00:00 2001 From: jgmdev Date: Fri, 17 Jun 2022 15:58:50 -0400 Subject: settings: fix theme loading on MacOSX when fd's have been exceeded --- plugins/settings.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'plugins/settings.lua') 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() -- cgit v1.2.3