Fix not working shortcuts.

This commit is contained in:
Roman Telezhynskyi 2024-01-24 12:18:13 +02:00
parent 32519e6089
commit ce1eac1407
3 changed files with 15 additions and 0 deletions

View File

@ -1740,6 +1740,11 @@ void VPMainWindow::ReadSettings()
// Stack limit // Stack limit
m_undoStack->setUndoLimit(settings->GetUndoCount()); m_undoStack->setUndoLimit(settings->GetUndoCount());
if (VAbstractShortcutManager *manager = VAbstractApplication::VApp()->GetShortcutManager())
{
manager->UpdateShortcuts();
}
} }
else else
{ {

View File

@ -2007,6 +2007,11 @@ void TKMMainWindow::ReadSettings()
// Stack limit // Stack limit
// VAbstractApplication::VApp()->getUndoStack()->setUndoLimit(settings->GetUndoCount()); // VAbstractApplication::VApp()->getUndoStack()->setUndoLimit(settings->GetUndoCount());
if (VAbstractShortcutManager *manager = VAbstractApplication::VApp()->GetShortcutManager())
{
manager->UpdateShortcuts();
}
} }
else else
{ {

View File

@ -4031,6 +4031,11 @@ void TMainWindow::ReadSettings()
// Stack limit // Stack limit
// VAbstractApplication::VApp()->getUndoStack()->setUndoLimit(settings->GetUndoCount()); // VAbstractApplication::VApp()->getUndoStack()->setUndoLimit(settings->GetUndoCount());
if (VAbstractShortcutManager *manager = VAbstractApplication::VApp()->GetShortcutManager())
{
manager->UpdateShortcuts();
}
} }
else else
{ {