mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-26 07:39:56 -06:00
take this somewhere
This commit is contained in:
@ -22,6 +22,7 @@
|
||||
#include <QDialog>
|
||||
|
||||
namespace Ui { class EmuSettingsDialog; }
|
||||
class EmuSettingsDialog;
|
||||
|
||||
class EmuSettingsDialog : public QDialog
|
||||
{
|
||||
@ -31,6 +32,31 @@ public:
|
||||
explicit EmuSettingsDialog(QWidget* parent);
|
||||
~EmuSettingsDialog();
|
||||
|
||||
static EmuSettingsDialog* currentDlg;
|
||||
static void openDlg(QWidget* parent)
|
||||
{
|
||||
if (currentDlg)
|
||||
{
|
||||
currentDlg->activateWindow();
|
||||
return;
|
||||
}
|
||||
|
||||
currentDlg = new EmuSettingsDialog(parent);
|
||||
currentDlg->show();
|
||||
}
|
||||
static void closeDlg()
|
||||
{
|
||||
currentDlg = nullptr;
|
||||
}
|
||||
|
||||
private slots:
|
||||
void on_EmuSettingsDialog_accepted();
|
||||
void on_EmuSettingsDialog_rejected();
|
||||
|
||||
void on_btnBIOS9Browse_clicked();
|
||||
void on_btnBIOS7Browse_clicked();
|
||||
void on_btnFirmwareBrowse_clicked();
|
||||
|
||||
private:
|
||||
Ui::EmuSettingsDialog* ui;
|
||||
};
|
||||
|
Reference in New Issue
Block a user