make --screen command line option do something again

This commit is contained in:
Michael Hudson-Doyle 2019-12-16 23:15:08 +13:00
parent 7e7ca080f6
commit 33af65bde1
1 changed files with 2 additions and 0 deletions

View File

@ -438,6 +438,8 @@ class Application:
def select_screen(self, new):
log.info("moving to screen %s", new.name)
if self.opts.screens and new.name not in self.opts.screens:
raise Skip
new.start_ui()
state_path = os.path.join(self.state_dir, 'last-screen')
with open(state_path, 'w') as fp: