Skip to content

Commit

Permalink
Keep "File Info" dialog "on top" state same as parent window
Browse files Browse the repository at this point in the history
  • Loading branch information
jdpurcell committed Jan 4, 2025
1 parent e2129af commit b803016
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1408,7 +1408,12 @@ void MainWindow::toggleWindowOnTop()
return;

const bool targetValue = !getWindowOnTop();

Qv::alterWindowFlags(this, [&](Qt::WindowFlags f) { return f.setFlag(Qt::WindowStaysOnTopHint, targetValue); });

if (info->windowHandle())
Qv::alterWindowFlags(info, [&](Qt::WindowFlags f) { return f.setFlag(Qt::WindowStaysOnTopHint, targetValue); });

for (const auto &action : qvApp->getActionManager().getAllClonesOfAction("windowontop", this))
action->setChecked(targetValue);

Expand Down

0 comments on commit b803016

Please sign in to comment.