| 1774 | } |
| 1775 | |
| 1776 | void 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 | |
| 1804 | void Ui::OpenRGBDialog2::on_ActionSaveProfile_triggered() |
| 1805 | { |
nothing calls this directly
no test coverage detected