mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-02 14:19:02 +00:00
Qt/RenderWidget: Fix the render widget showing up when it shouldn't
This commit is contained in:
parent
50e80d66db
commit
519fa7529f
1 changed files with 4 additions and 1 deletions
|
@ -75,9 +75,12 @@ 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);
|
||||||
|
|
||||||
|
if (was_visible)
|
||||||
show();
|
show();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue