Swap final test to a screen type rather than instance

See https://github.com/Textualize/textual/pull/1346#discussion_r1049678092
This commit is contained in:
Dave Pearson
2022-12-15 14:12:52 +00:00
parent 7397cff52a
commit f08b4eda6d

View File

@@ -587,7 +587,7 @@ class PriorityOverlapApp(AppKeyRecorder):
Binding("f", "record('app_f')", "f", priority=False),
]
SCREENS = {"main": PriorityOverlapScreen()}
SCREENS = {"main": PriorityOverlapScreen}
def on_mount(self) -> None:
self.push_screen("main")