Pin inspector window if opened with context menu

This commit is contained in:
Lawrence Lee
2021-04-25 17:27:57 -07:00
parent 67e18b5c53
commit d4bceb5c06
3 changed files with 4 additions and 4 deletions

View File

@@ -117,7 +117,7 @@ Inspector::~Inspector()
delete window;
}
void Inspector::showWindow(bool scaled, bool fullscreen)
void Inspector::showWindow(bool scaled, bool fullscreen, bool pinned)
{
if (!window)
return;
@@ -137,7 +137,7 @@ void Inspector::showWindow(bool scaled, bool fullscreen)
window->unfullscreen();
this->fullscreen = fullscreen;
window->set_visible(true);
pinned = false;
this->pinned = pinned;
// update content when becoming visible
switchImage(next_image_path);