Skip to content

Commit

Permalink
Reload album shape when saving settings
Browse files Browse the repository at this point in the history
  • Loading branch information
kraxarn committed May 28, 2023
1 parent da63dea commit 8a930a2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/settingspage/interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,16 @@ void SettingsPage::Interface::saveGeneral()
if (albumShape != nullptr)
{
const auto currentAlbumShape = albumShape->currentAlbumShape();

if (mainWindow != nullptr && qtSettings.album_shape != currentAlbumShape)
{
auto *contextView = mainWindow->findChild<Context::View *>();
if (contextView != nullptr)
{
contextView->reset();
}
}

qtSettings.album_shape = currentAlbumShape;
}

Expand Down

0 comments on commit 8a930a2

Please sign in to comment.