Improve refreshing watermark data.

This commit is contained in:
Roman Telezhynskyi 2022-02-12 13:41:38 +02:00
parent 44dffa9c68
commit 341dfadc93

View File

@ -357,9 +357,14 @@ VPMainWindow::VPMainWindow(const VPCommandLinePtr &cmd, QWidget *parent) :
} }
m_layout->TileFactory()->RefreshTileInfos(); m_layout->TileFactory()->RefreshTileInfos();
if (path == m_layout->LayoutSettings().WatermarkPath())
{
m_layoutWatcher->blockSignals(true); m_layoutWatcher->blockSignals(true);
m_layout->TileFactory()->RefreshWatermarkData(); m_layout->TileFactory()->RefreshWatermarkData();
m_layoutWatcher->blockSignals(false); m_layoutWatcher->blockSignals(false);
}
m_graphicsView->RefreshLayout(); m_graphicsView->RefreshLayout();
if (checkFile.exists()) if (checkFile.exists())