mirror of
https://gitea.osmocom.org/sim-card/pysim.git
synced 2026-03-17 02:48:34 +03:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user