FilesystemPanel: Expand game partition rather than second partition
The game partition is normally the second partition, but not if the disc has been scrubbed to only contain one partition.
This commit is contained in:
parent
9885a2bb28
commit
025884b688
|
@ -215,7 +215,7 @@ bool FilesystemPanel::PopulateFileSystemTree()
|
||||||
m_tree_ctrl->SetItemData(partition_root, partition);
|
m_tree_ctrl->SetItemData(partition_root, partition);
|
||||||
CreateDirectoryTree(m_tree_ctrl, partition_root, partition->filesystem->GetFileList());
|
CreateDirectoryTree(m_tree_ctrl, partition_root, partition->filesystem->GetFileList());
|
||||||
|
|
||||||
if (i == 1)
|
if (partitions[i] == m_opened_iso->GetGamePartition())
|
||||||
m_tree_ctrl->Expand(partition_root);
|
m_tree_ctrl->Expand(partition_root);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue