forked from eden-emu/eden
applet: controller: Implement cancel button
This commit is contained in:
parent
8bdc51b620
commit
11edba4974
9 changed files with 33 additions and 19 deletions
|
@ -634,15 +634,16 @@ void GMainWindow::ControllerSelectorReconfigureControllers(
|
|||
Qt::WindowStaysOnTopHint | Qt::WindowTitleHint |
|
||||
Qt::WindowSystemMenuHint);
|
||||
controller_applet->setWindowModality(Qt::WindowModal);
|
||||
controller_applet->exec();
|
||||
|
||||
emit ControllerSelectorReconfigureFinished();
|
||||
bool is_success = controller_applet->exec() != QDialog::Rejected;
|
||||
|
||||
// Don't forget to apply settings.
|
||||
system->HIDCore().DisableAllControllerConfiguration();
|
||||
system->ApplySettings();
|
||||
config->Save();
|
||||
|
||||
UpdateStatusButtons();
|
||||
|
||||
emit ControllerSelectorReconfigureFinished(is_success);
|
||||
}
|
||||
|
||||
void GMainWindow::ControllerSelectorRequestExit() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue