summaryrefslogtreecommitdiff
path: root/poezio/tabs/basetabs.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2021-04-15 18:26:37 +0200
committermathieui <mathieui@mathieui.net>2021-04-15 18:28:42 +0200
commit56bab711924cd7a660c874abf40fd545693f8d98 (patch)
treed4e0bff66b3e94231badc097af01487b45278587 /poezio/tabs/basetabs.py
parentb1b2ef860fbb6eaad63dae6fcb8a731ad595c474 (diff)
downloadpoezio-56bab711924cd7a660c874abf40fd545693f8d98.tar.gz
poezio-56bab711924cd7a660c874abf40fd545693f8d98.tar.bz2
poezio-56bab711924cd7a660c874abf40fd545693f8d98.tar.xz
poezio-56bab711924cd7a660c874abf40fd545693f8d98.zip
fix: display issue when changing show_timestamps value
Diffstat (limited to 'poezio/tabs/basetabs.py')
-rw-r--r--poezio/tabs/basetabs.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/poezio/tabs/basetabs.py b/poezio/tabs/basetabs.py
index 2046b866..51c34e62 100644
--- a/poezio/tabs/basetabs.py
+++ b/poezio/tabs/basetabs.py
@@ -124,12 +124,14 @@ class Tab:
plugin_commands: Dict[str, Command] = {}
plugin_keys: Dict[str, Callable] = {}
# Placeholder values, set on resize
- height = 1
- width = 1
+ height: int = 1
+ width: int = 1
core: Core
input: Optional[windows.Input]
key_func: Dict[str, Callable[[], Any]]
commands: Dict[str, Command]
+ need_resize: bool
+ ui_config_changed: bool
def __init__(self, core: Core):
self.core = core
@@ -142,6 +144,7 @@ class Tab:
self._prev_state = None
self.need_resize = False
+ self.ui_config_changed = False
self.key_func = {} # each tab should add their keys in there
# and use them in on_input
self.commands = {} # and their own commands