Made system.set_window_title
only be called on title change
This commit is contained in:
parent
cc58fcc35b
commit
7fbefe40d5
|
@ -400,10 +400,10 @@ function core.step()
|
||||||
|
|
||||||
-- update window title
|
-- update window title
|
||||||
local name = core.active_view:get_name()
|
local name = core.active_view:get_name()
|
||||||
if name ~= "---" then
|
local title = (name ~= "---") and (name .. " - lite") or "lite"
|
||||||
system.set_window_title(name .. " - lite")
|
if title ~= core.window_title then
|
||||||
else
|
system.set_window_title(title)
|
||||||
system.set_window_title("lite")
|
core.window_title = title
|
||||||
end
|
end
|
||||||
|
|
||||||
-- draw
|
-- draw
|
||||||
|
|
Loading…
Reference in a new issue