From c2978eb29e9ce398ef690d62cf6c68b4e26a99cf Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Thu, 6 Jun 2013 20:09:30 -0400 Subject: Only set theme and property settings once on startup; core/gui.lua --- core/gui.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'core') diff --git a/core/gui.lua b/core/gui.lua index d2132bc2..0d07f33e 100644 --- a/core/gui.lua +++ b/core/gui.lua @@ -234,7 +234,9 @@ events_connect(events.VIEW_NEW, function() for _, key in ipairs(ctrl_shift_keys) do buffer:clear_cmd_key(string.byte(key), c.SCMOD_CTRL + c.SCMOD_SHIFT) end - load_theme_and_settings() + -- Since BUFFER_NEW loads themes and settings on startup, only load them for + -- subsequent views. + if #_VIEWS > 1 then load_theme_and_settings() end end) events_connect(events.VIEW_NEW, function() events.emit(events.UPDATE_UI) end) -- cgit v1.2.3