aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2013-06-06 20:09:30 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2013-06-06 20:09:30 -0400
commitc2978eb29e9ce398ef690d62cf6c68b4e26a99cf (patch)
tree4d6b4abf0ebf0c8f6bc11a76e75a3014832243f3 /core
parent1e59cc9d3f3951487ce1419b7904af2765bbc2cb (diff)
downloadtextadept-c2978eb29e9ce398ef690d62cf6c68b4e26a99cf.tar.gz
textadept-c2978eb29e9ce398ef690d62cf6c68b4e26a99cf.zip
Only set theme and property settings once on startup; core/gui.lua
Diffstat (limited to 'core')
-rw-r--r--core/gui.lua4
1 files changed, 3 insertions, 1 deletions
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)