mirror of
https://github.com/YACReader/yacreader
synced 2025-07-18 21:14:33 -04:00
Add what's new dialog
This commit is contained in:
@ -20,6 +20,8 @@
|
||||
#include "edit_shortcuts_dialog.h"
|
||||
#include "shortcuts_manager.h"
|
||||
|
||||
#include "whats_new_controller.h"
|
||||
|
||||
#include <ctime>
|
||||
#include <algorithm>
|
||||
#include <QApplication>
|
||||
@ -73,6 +75,14 @@ MainWindowViewer::MainWindowViewer()
|
||||
{
|
||||
loadConfiguration();
|
||||
setupUI();
|
||||
afterLaunchTasks();
|
||||
}
|
||||
|
||||
void MainWindowViewer::afterLaunchTasks()
|
||||
{
|
||||
WhatsNewController whatsNewController;
|
||||
|
||||
whatsNewController.showWhatsNewIfNeeded(this);
|
||||
}
|
||||
|
||||
MainWindowViewer::~MainWindowViewer()
|
||||
|
@ -185,6 +185,7 @@ protected:
|
||||
void closeEvent(QCloseEvent *event) override;
|
||||
void sendComic();
|
||||
void updatePrevNextActions(bool thereIsPrevious, bool thereIsNext);
|
||||
void afterLaunchTasks();
|
||||
|
||||
public:
|
||||
MainWindowViewer();
|
||||
|
@ -66,5 +66,7 @@
|
||||
<file>../images/shortcuts_group_page.png</file>
|
||||
<file>../images/shortcuts_group_reading.png</file>
|
||||
<file>../images/shortcuts_group_visualization.png</file>
|
||||
<file>../images/custom_dialog/custom_close_button.svg</file>
|
||||
<file>../images/whats_new/whatsnew_header.svg</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
|
Reference in New Issue
Block a user