mirror of https://github.com/stella-emu/stella.git
Fix bug where selected ROM isn't remembered when exiting and re-entering a directory.
This commit is contained in:
parent
e5b5157751
commit
61de76e9f0
|
@ -178,7 +178,10 @@ void FileListWidget::handleCommand(CommandSender* sender, int cmd, int data, int
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
|
_selectedFile = selected().getName();
|
||||||
cmd = ItemActivated;
|
cmd = ItemActivated;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case ListWidget::kLongButtonPressCmd:
|
case ListWidget::kLongButtonPressCmd:
|
||||||
|
|
|
@ -55,7 +55,9 @@ class FileListWidget : public StringListWidget
|
||||||
/** Determines how to display files/folders; either setDirectory or reload
|
/** Determines how to display files/folders; either setDirectory or reload
|
||||||
must be called after any of these are called. */
|
must be called after any of these are called. */
|
||||||
void setListMode(FilesystemNode::ListMode mode) { _fsmode = mode; }
|
void setListMode(FilesystemNode::ListMode mode) { _fsmode = mode; }
|
||||||
void setNameFilter(const FilesystemNode::NameFilter& filter) { _filter = filter; }
|
void setNameFilter(const FilesystemNode::NameFilter& filter) {
|
||||||
|
_filter = filter;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Set initial directory, and optionally select the given item.
|
Set initial directory, and optionally select the given item.
|
||||||
|
@ -64,7 +66,8 @@ class FileListWidget : public StringListWidget
|
||||||
will instead be used, and the file will be selected
|
will instead be used, and the file will be selected
|
||||||
@param select An optional entry to select (if applicable)
|
@param select An optional entry to select (if applicable)
|
||||||
*/
|
*/
|
||||||
void setDirectory(const FilesystemNode& node, const string& select = EmptyString);
|
void setDirectory(const FilesystemNode& node,
|
||||||
|
const string& select = EmptyString);
|
||||||
|
|
||||||
/** Select parent directory (if applicable) */
|
/** Select parent directory (if applicable) */
|
||||||
void selectParent();
|
void selectParent();
|
||||||
|
|
Loading…
Reference in New Issue