mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-05-11 13:42:39 +00:00
Qt: Unparent NetPlay dialog from main window
This should make the NetPlay dialog appear as a separate window in the taskbar on most systems, which makes more sense than a parented dialog as the user will leave it open for an extended period.
This commit is contained in:
parent
fd83937987
commit
f620128dac
3 changed files with 5 additions and 2 deletions
|
@ -156,6 +156,7 @@ MainWindow::MainWindow(std::unique_ptr<BootParameters> boot_parameters) : QMainW
|
|||
MainWindow::~MainWindow()
|
||||
{
|
||||
m_render_widget->deleteLater();
|
||||
m_netplay_dialog->deleteLater();
|
||||
ShutdownControllers();
|
||||
|
||||
QSettings& settings = Settings::GetQSettings();
|
||||
|
@ -1037,7 +1038,7 @@ void MainWindow::BootWiiSystemMenu()
|
|||
void MainWindow::NetPlayInit()
|
||||
{
|
||||
m_netplay_setup_dialog = new NetPlaySetupDialog(this);
|
||||
m_netplay_dialog = new NetPlayDialog(this);
|
||||
m_netplay_dialog = new NetPlayDialog;
|
||||
|
||||
connect(m_netplay_dialog, &NetPlayDialog::Boot, this,
|
||||
[this](const QString& path) { StartGame(path); });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue