runtime: integrate escape route for applications without ADF support

the select_parent method in RuntimeLchan currently implements a way
to escape from an application that has no filesystem support. However,
this escape route can be integrated directly into the select_file
method. This will give us the benefit that it will work transparently
in all code locations.

(This also means we can get rid of the select_parent method again)

Related: OS#6120
Change-Id: Ie6f37d13af880d24a9c7a8a95cef436b603587c7
This commit is contained in:
Philipp Maier
2024-08-05 17:43:27 +02:00
parent 2d235f8143
commit 8597b64ee6
2 changed files with 19 additions and 31 deletions

View File

@@ -534,7 +534,7 @@ class PySimCommands(CommandSet):
# below, so we must not move up.
if skip_df == False:
self.walk(indent + 1, action_ef, action_df, context, **kwargs)
self._cmd.lchan.select_parent(self._cmd)
self._cmd.lchan.select_file(self._cmd.lchan.selected_file.parent, self._cmd)
elif action_ef:
df_before_action = self._cmd.lchan.selected_file