@@ -184,18 +184,13 @@ QGridLayout* PathPane::MakePathsLayout()
184184 layout->addWidget (m_game_edit, 0 , 1 );
185185 layout->addWidget (game_open, 0 , 2 );
186186
187- m_launcher_edit = new QLineEdit (QString::fromStdString (File::GetUserPath (D_LAUNCHERS_IDX)));
188- connect (m_launcher_edit, &QLineEdit::editingFinished, [this ] {
189- Config::SetBase (Config::MAIN_LAUNCHER_PATH, m_launcher_edit->text ().toStdString ());
190- });
191- connect (&Settings::Instance (), &Settings::LauncherPathChanged, this ,
192- [this ](const QString& path) { m_game_edit->setText (path); });
187+ m_launcher_edit = new ConfigUserPath (D_LAUNCHERS_IDX, Config::MAIN_LAUNCHER_PATH);
193188 QPushButton* launcher_open = new NonDefaultQPushButton (QStringLiteral (" ..." ));
194189 connect (launcher_open, &QPushButton::clicked, this , &PathPane::BrowseLauncher);
195190 layout->addWidget (new QLabel (tr (" Launcher Path:" )), 1 , 0 );
196191 layout->addWidget (m_launcher_edit, 1 , 1 );
197192 layout->addWidget (launcher_open, 1 , 2 );
198-
193+
199194 m_nand_edit = new ConfigUserPath (D_WIIROOT_IDX, Config::MAIN_FS_PATH);
200195 QPushButton* nand_open = new NonDefaultQPushButton (QStringLiteral (" ..." ));
201196 connect (nand_open, &QPushButton::clicked, this , &PathPane::BrowseWiiNAND);
0 commit comments