[Macro Menu] add Recent macros to Macro menu + list size preference. Executes selected macro or if Shift+click opens macro in editor.

This commit is contained in:
mwganson
2020-06-14 15:47:30 -05:00
committed by Yorik van Havre
parent 2ef0017cf6
commit 4a0d127dae
10 changed files with 491 additions and 30 deletions

View File

@@ -1320,6 +1320,15 @@ void MainWindow::appendRecentFile(const QString& filename)
}
}
void MainWindow::appendRecentMacro(const QString& filename)
{
RecentMacrosAction *recent = this->findChild<RecentMacrosAction *>
(QString::fromLatin1("recentMacros"));
if (recent) {
recent->appendFile(filename);
}
}
void MainWindow::updateActions(bool delay)
{
//make it safe to call before the main window is actually created