Skip to content

Commit e415df5

Browse files
committed
Wrong check: Empty close_all means close all windows
1 parent 99206a5 commit e415df5

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"request": "launch",
1111
"program": "xsession_manager/tests/run_main.py",
1212
"console": "integratedTerminal",
13-
"args": ["-r","testing-save-session","-i", "super"],
13+
"args": ["-c"],
1414
"justMyCode": false
1515
}
1616
]

xsession_manager/arguments_handler.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,8 @@ def handle_arguments(self):
122122
xsm = XSessionManager(verbose=self.args.verbose, vv=self.args.vv)
123123
xsm.save_session(session_name_for_saving)
124124

125-
if close_all:
125+
# Empty close_all means close all windows
126+
if close_all is not None:
126127
print(constants.Prompts.MSG_CLOSE_ALL_WINDOWS)
127128
self.wait_for_answer()
128129
# TODO Order sensitive?

0 commit comments

Comments
 (0)