mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 14:55:36 +08:00
Fix clearing the FG cache in swiftdata
This commit is contained in:
committed by
Lars Toenning
parent
cc1e41fc59
commit
42e53cc142
@@ -579,7 +579,7 @@ namespace swift::gui::components
|
||||
if (!m_clearCacheActions[4])
|
||||
{
|
||||
m_clearCacheActions[4] = new QAction(CIcons::appModels16(), "Clear FG cache", this);
|
||||
connect(m_clearCacheActions[3], &QAction::triggered, ownModelsComp, [ownModelsComp](bool checked) {
|
||||
connect(m_clearCacheActions[4], &QAction::triggered, ownModelsComp, [ownModelsComp](bool checked) {
|
||||
if (!ownModelsComp) { return; }
|
||||
Q_UNUSED(checked)
|
||||
ownModelsComp->clearSimulatorCache(CSimulatorInfo::fg());
|
||||
|
||||
Reference in New Issue
Block a user