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

Method on_ButtonRescan_clicked

qt/OpenRGBDialog2/OpenRGBDialog2.cpp:1776–1802  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1774}
1775
1776void Ui::OpenRGBDialog2::on_ButtonRescan_clicked()
1777{
1778 /*---------------------------------------------------------*\
1779 | Hide devices view on rescan so it stops handling paint |
1780 | events. |
1781 \*---------------------------------------------------------*/
1782 for(int device = 0; device < ui->DevicesTabBar->count(); device++)
1783 {
1784 OpenRGBDevicePage* device_page = qobject_cast<OpenRGBDevicePage *>(ui->DevicesTabBar->widget(device));
1785 if(device_page) // Check the cast to make sure it is a device and not plugin
1786 {
1787 device_page->HideDeviceView();
1788 }
1789 }
1790
1791 device_view_showing = false;
1792
1793 /*---------------------------------------------------------*\
1794 | Show the detection progress bar. |
1795 \*---------------------------------------------------------*/
1796 SetDetectionViewState(true);
1797
1798 /*---------------------------------------------------------*\
1799 | Show the detection progress bar. |
1800 \*---------------------------------------------------------*/
1801 ResourceManager::get()->DetectDevices();
1802}
1803
1804void Ui::OpenRGBDialog2::on_ActionSaveProfile_triggered()
1805{

Callers

nothing calls this directly

Calls 4

HideDeviceViewMethod · 0.80
DetectDevicesMethod · 0.80
getFunction · 0.50
countMethod · 0.45

Tested by

no test coverage detected