runtime: rename get_file_for_selectable to get_file_for_filename

Let's rename get_file_for_selectable to get_file_for_filename so that it
is immediately clear what the method does.

Related: OS#6092
Change-Id: Ifed860814229857ad8b969e50849debbf5d8918f
This commit is contained in:
Philipp Maier
2024-07-24 10:36:08 +02:00
committed by laforge
parent 2cca36e8fd
commit c78ea1ffa6
2 changed files with 5 additions and 5 deletions

View File

@@ -401,7 +401,7 @@ class RuntimeLchan:
(data, _sw) = self.scc.status()
return self.selected_file.decode_select_response(data)
def get_file_for_selectable(self, name: str):
def get_file_for_filename(self, name: str):
"""Get the related CardFile object for a specified filename."""
sels = self.selected_file.get_selectables()
return sels[name]