more shady stuff

This commit is contained in:
Nayla Hanegan 2024-08-23 15:42:58 -04:00
commit 2bb83b1adb
16 changed files with 93 additions and 86 deletions

View file

@ -105,7 +105,7 @@ void NetPlayBrowser::Refresh()
std::map<std::string, std::string> filters;
if (m_check_hide_incompatible->isChecked())
filters["version"] = Common::GetScmDescStr();
filters["version"] = "MPN";
if (!m_edit_name->text().isEmpty())
filters["name"] = m_edit_name->text().toStdString();

View file

@ -264,7 +264,7 @@ void NetPlayDialog::CreateMainLayout()
m_main_layout->addLayout(options_widget, 2, 0, 1, -1, Qt::AlignRight);
m_main_layout->setRowStretch(1, 1000);
m_buffer_size_box->setFixedSize(100, 20);
setLayout(m_main_layout);
}
@ -1297,4 +1297,4 @@ void NetPlayDialog::OnActiveGeckoCodes(std::string codeStr)
void NetPlayDialog::OnActiveARCodes(std::string codeStr)
{
DisplayMessage(QString::fromStdString(codeStr), "cornflowerblue");
}
}

View file

@ -371,7 +371,7 @@ void NetPlaySetupDialog::show()
m_host_server_name->setText(QString::fromStdString(nickname));
}
m_connection_type->setCurrentIndex(1);
m_tab_widget->setCurrentIndex(2); // start on browser
m_tab_widget->setCurrentIndex(2);
PopulateGameList();
QDialog::show();
@ -444,7 +444,7 @@ void NetPlaySetupDialog::RefreshBrowser()
filters["name"] = m_edit_name->text().toStdString();
if (true)
filters["version"] = Common::GetScmDescStr();
filters["version"] = "MPN";
if (!m_radio_all->isChecked())
filters["password"] = std::to_string(m_radio_private->isChecked());