Skip to content

Commit

Permalink
Maximizing works...
Browse files Browse the repository at this point in the history
  • Loading branch information
rhaschke committed Sep 16, 2023
1 parent 767911c commit 697194c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rviz/default_plugin/image_display.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -171,15 +171,15 @@ void ImageDisplay::onDisable()
void ImageDisplay::toggleFullScreen()
{
auto* panel = getAssociatedWidgetPanel();
if (panel->windowState() & Qt::WindowFullScreen)
if (panel->windowState() & Qt::WindowMaximized)
{
panel->setFloating(false);
panel->showNormal();
}
else
{
panel->setFloating(true);
panel->showFullScreen();
panel->showMaximized();
}
}

Expand Down

0 comments on commit 697194c

Please sign in to comment.