Add an option to @set-window-title to make the change overridable

This commit is contained in:
Kovid Goyal
2018-06-01 06:49:47 +05:30
parent d89861f601
commit 1dc9adebb4
2 changed files with 16 additions and 3 deletions

View File

@@ -211,6 +211,8 @@ class Window:
glfw_post_empty_event()
def set_title(self, title):
if title:
title = sanitize_title(title)
self.override_title = title or None
self.title_updated()