mirror of
https://github.com/jpd002/Play-.git
synced 2025-04-28 13:47:57 +03:00
Hide Homebrew/Arcade sort option
This commit is contained in:
parent
0d43ab4767
commit
ae835d7fa5
3 changed files with 4 additions and 14 deletions
|
@ -31,8 +31,8 @@ QBootablesView::QBootablesView(QWidget* parent)
|
|||
m_proxyModel = new BootableModelProxy(this);
|
||||
ui->listView->setModel(m_proxyModel);
|
||||
|
||||
CAppConfig::GetInstance().RegisterPreferenceInteger("ui.sortmethod", BootablesDb::CClient::SORT_METHOD_NONE);
|
||||
m_sortingMethod = CAppConfig::GetInstance().GetPreferenceInteger("ui.sortmethod");
|
||||
CAppConfig::GetInstance().RegisterPreferenceInteger("ui.sortmethod.v2", BootablesDb::CClient::SORT_METHOD_NONE);
|
||||
m_sortingMethod = CAppConfig::GetInstance().GetPreferenceInteger("ui.sortmethod.v2") & BootablesDb::CClient::SORT_METHOD_NONE;
|
||||
ui->comboBox->setCurrentIndex(m_sortingMethod);
|
||||
|
||||
CAppConfig::GetInstance().RegisterPreferenceInteger("ui.filterbootabletype", BootablesDb::BOOTABLE_TYPE::PS2_DISC | BootablesDb::BOOTABLE_TYPE::PS2_ARCADE | BootablesDb::BOOTABLE_TYPE::PS2_ELF);
|
||||
|
@ -249,7 +249,7 @@ void QBootablesView::on_refresh_button_clicked()
|
|||
|
||||
void QBootablesView::on_comboBox_currentIndexChanged(int index)
|
||||
{
|
||||
CAppConfig::GetInstance().SetPreferenceInteger("ui.sortmethod", index);
|
||||
CAppConfig::GetInstance().SetPreferenceInteger("ui.sortmethod.v2", index);
|
||||
m_sortingMethod = index;
|
||||
resetModel();
|
||||
}
|
||||
|
|
|
@ -259,21 +259,11 @@
|
|||
<string>Recently Played</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Homebrew</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Unsorted</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Arcade Machines</string>
|
||||
</property>
|
||||
</item>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
|
|
|
@ -44,8 +44,8 @@ namespace BootablesDb
|
|||
enum SORT_METHOD
|
||||
{
|
||||
SORT_METHOD_RECENT,
|
||||
SORT_METHOD_HOMEBREW,
|
||||
SORT_METHOD_NONE,
|
||||
SORT_METHOD_HOMEBREW,
|
||||
SORT_METHOD_ARCADE,
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue