mirror of https://github.com/mpv-player/mpv
console.lua: don't clear not ours osd messages
Note that this still is not perfect, because if osd message is changed, console cannot know about it and would still clear it, but this change make it at least not do it to every message even if console is not used.
This commit is contained in:
parent
6880178269
commit
c3404fdf37
|
@ -414,7 +414,9 @@ end
|
|||
local function print_to_terminal()
|
||||
-- Clear the log after closing the console.
|
||||
if not repl_active then
|
||||
if osd_msg_active then
|
||||
mp.osd_message('')
|
||||
end
|
||||
osd_msg_active = false
|
||||
return
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue