When reloading config also reload all GPU data

Fixes some config options such as text_composition_strategy not being
reloaded.
This commit is contained in:
Kovid Goyal
2023-03-01 11:13:12 +05:30
parent 0616f9e077
commit bf79940a13
4 changed files with 15 additions and 2 deletions

View File

@@ -816,8 +816,10 @@ class Window:
if val:
self.refresh()
def refresh(self) -> None:
def refresh(self, reload_all_gpu_data: bool = False) -> None:
self.screen.mark_as_dirty()
if reload_all_gpu_data:
self.screen.reload_all_gpu_data()
wakeup_io_loop()
wakeup_main_loop()