MCPcopy Create free account
hub / github.com/CalcProgrammer1/OpenRGB / closeEvent

Method closeEvent

qt/OpenRGBDialog2/OpenRGBDialog2.cpp:585–604  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

583}
584
585void 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
606void OpenRGBDialog2::LoadExitProfile()
607{

Callers 1

handleAboutToQuitMethod · 0.95

Calls 4

UnloadPluginsMethod · 0.80
getFunction · 0.50
acceptMethod · 0.45

Tested by

no test coverage detected