mirror of
https://github.com/YACReader/yacreader
synced 2025-07-14 11:04:25 -04:00
Allow triggering Open latest comic action when the toolbar is hidden
This action is added to the toolbar but not to the viewer. Thus it cannot be triggered when the toolbar is hidden. Adding it to MainWindowViewer makes it available at all times.
This commit is contained in:
@ -254,6 +254,7 @@ void MainWindowViewer::createActions()
|
||||
openLatestComicAction->setToolTip(tr("Open the latest comic opened in the previous reading session"));
|
||||
openLatestComicAction->setData(OPEN_LATEST_COMIC_Y);
|
||||
openLatestComicAction->setShortcut(ShortcutsManager::getShortcutsManager().getShortcut(OPEN_LATEST_COMIC_Y));
|
||||
addAction(openLatestComicAction);
|
||||
connect(openLatestComicAction, &QAction::triggered, this, &MainWindowViewer::openLatestComic);
|
||||
|
||||
QAction *recentFileAction = nullptr;
|
||||
|
Reference in New Issue
Block a user