diff options
author | jgmdev <jgmdev@gmail.com> | 2022-06-17 15:58:50 -0400 |
---|---|---|
committer | jgmdev <jgmdev@gmail.com> | 2022-06-17 15:58:50 -0400 |
commit | 3e8e08ccf0ba7d88c333af9448be9a9b3adc8e06 (patch) | |
tree | 78f273b1c66432292d996d17535abb53879133df | |
parent | 72a53f3f1f4084fe92e1bd6d67170030be4f24cc (diff) | |
download | lite-xl-plugins-3e8e08ccf0ba7d88c333af9448be9a9b3adc8e06.tar.gz lite-xl-plugins-3e8e08ccf0ba7d88c333af9448be9a9b3adc8e06.zip |
settings: fix theme loading on MacOSX when fd's have been exceeded
-rw-r--r-- | plugins/settings.lua | 4 |
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() |