Made system.set_window_title only be called on title change

This commit is contained in:
rxi 2020-05-30 08:53:48 +01:00
parent cc58fcc35b
commit 7fbefe40d5

View file

@ -400,10 +400,10 @@ function core.step()
-- update window title
local name = core.active_view:get_name()
if name ~= "---" then
system.set_window_title(name .. " - lite")
else
system.set_window_title("lite")
local title = (name ~= "---") and (name .. " - lite") or "lite"
if title ~= core.window_title then
system.set_window_title(title)
core.window_title = title
end
-- draw