mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-10-25 01:48:59 -04:00
Add button to toggle graphical LED view and default to hidden
This commit is contained in:
1 parent
ba24efe544
commit
a2ed9571cf
7 files changed
+249
-196
No files matched your search
@@ -390,6 +390,14 @@ void DeviceView::paintEvent(QPaintEvent* /* event */)
|
||||
QPainter painter(this);
|
||||
QFont font = painter.font();
|
||||
|
||||
/*-----------------------------------------------------*\
|
||||
| If Device View is hidden, don't paint |
|
||||
\*-----------------------------------------------------*/
|
||||
if(isHidden())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
/*-----------------------------------------------------*\
|
||||
| If controller has resized, reinitialize local data |
|
||||
\*-----------------------------------------------------*/
|
||||
|
||||
Reference in new issue
Block a user