Skip to content

Commit

Permalink
add saved template directly to recent templates
Browse files Browse the repository at this point in the history
  • Loading branch information
sunderme committed Aug 11, 2023
1 parent dd76dc6 commit a87527a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,11 @@ void MainWindow::saveTemplate()

QJsonDocument saveDoc(jo);
saveFile.write(saveDoc.toJson());

// add new template to recent templates
m_recentTemplates.removeOne(fileName);
m_recentTemplates.prepend(fileName);
populateRecentTemplates();
}
/*!
* \brief read in template
Expand Down

0 comments on commit a87527a

Please sign in to comment.