mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-09 18:45:40 +00:00
Qt/RenderWidget: Fix the render widget showing up when it shouldn't
This commit is contained in:
parent
50e80d66db
commit
519fa7529f
@ -75,10 +75,13 @@ void RenderWidget::OnHideCursorChanged()
|
|||||||
|
|
||||||
void RenderWidget::OnKeepOnTopChanged(bool top)
|
void RenderWidget::OnKeepOnTopChanged(bool top)
|
||||||
{
|
{
|
||||||
|
const bool was_visible = isVisible();
|
||||||
|
|
||||||
setWindowFlags(top ? windowFlags() | Qt::WindowStaysOnTopHint :
|
setWindowFlags(top ? windowFlags() | Qt::WindowStaysOnTopHint :
|
||||||
windowFlags() & ~Qt::WindowStaysOnTopHint);
|
windowFlags() & ~Qt::WindowStaysOnTopHint);
|
||||||
|
|
||||||
show();
|
if (was_visible)
|
||||||
|
show();
|
||||||
}
|
}
|
||||||
|
|
||||||
void RenderWidget::HandleCursorTimer()
|
void RenderWidget::HandleCursorTimer()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user