| 583 | } |
| 584 | |
| 585 | void OpenRGBDialog2::closeEvent(QCloseEvent *event) |
| 586 | { |
| 587 | ResourceManager::get()->WaitForDeviceDetection(); |
| 588 | |
| 589 | if (IsMinimizeOnClose() && !this->isHidden()) |
| 590 | { |
| 591 | #ifdef __APPLE__ |
| 592 | MacUtils::ToggleApplicationDocklessState(false); |
| 593 | #endif |
| 594 | hide(); |
| 595 | event->ignore(); |
| 596 | } |
| 597 | else |
| 598 | { |
| 599 | plugin_manager->UnloadPlugins(); |
| 600 | LoadExitProfile(); |
| 601 | event->accept(); |
| 602 | QApplication::exit(0); |
| 603 | } |
| 604 | } |
| 605 | |
| 606 | void OpenRGBDialog2::LoadExitProfile() |
| 607 | { |
no test coverage detected