mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-30 09:35:40 +00:00
Qt: Allow updating to previously skipped builds by forcing update
This commit is contained in:
parent
daa5e02853
commit
4d9e58ac42
|
@ -669,7 +669,7 @@ void MainWindow::connectSignals()
|
||||||
connect(m_ui.actionIssueTracker, &QAction::triggered, this, &MainWindow::onIssueTrackerActionTriggered);
|
connect(m_ui.actionIssueTracker, &QAction::triggered, this, &MainWindow::onIssueTrackerActionTriggered);
|
||||||
connect(m_ui.actionDiscordServer, &QAction::triggered, this, &MainWindow::onDiscordServerActionTriggered);
|
connect(m_ui.actionDiscordServer, &QAction::triggered, this, &MainWindow::onDiscordServerActionTriggered);
|
||||||
connect(m_ui.actionAbout, &QAction::triggered, this, &MainWindow::onAboutActionTriggered);
|
connect(m_ui.actionAbout, &QAction::triggered, this, &MainWindow::onAboutActionTriggered);
|
||||||
connect(m_ui.actionCheckForUpdates, &QAction::triggered, [this]() { checkForUpdates(true); });
|
connect(m_ui.actionCheckForUpdates, &QAction::triggered, this, &MainWindow::onCheckForUpdatesActionTriggered);
|
||||||
|
|
||||||
connect(m_host_interface, &QtHostInterface::errorReported, this, &MainWindow::reportError,
|
connect(m_host_interface, &QtHostInterface::errorReported, this, &MainWindow::reportError,
|
||||||
Qt::BlockingQueuedConnection);
|
Qt::BlockingQueuedConnection);
|
||||||
|
@ -949,6 +949,13 @@ void MainWindow::updateDebugMenuVisibility()
|
||||||
m_ui.menuDebug->menuAction()->setVisible(visible);
|
m_ui.menuDebug->menuAction()->setVisible(visible);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void MainWindow::onCheckForUpdatesActionTriggered()
|
||||||
|
{
|
||||||
|
// Wipe out the last version, that way it displays the update if we've previously skipped it.
|
||||||
|
m_host_interface->RemoveSettingValue("AutoUpdater", "LastVersion");
|
||||||
|
checkForUpdates(true);
|
||||||
|
}
|
||||||
|
|
||||||
void MainWindow::checkForUpdates(bool display_message)
|
void MainWindow::checkForUpdates(bool display_message)
|
||||||
{
|
{
|
||||||
if (!AutoUpdaterDialog::isSupported())
|
if (!AutoUpdaterDialog::isSupported())
|
||||||
|
|
|
@ -71,6 +71,7 @@ private Q_SLOTS:
|
||||||
void onIssueTrackerActionTriggered();
|
void onIssueTrackerActionTriggered();
|
||||||
void onDiscordServerActionTriggered();
|
void onDiscordServerActionTriggered();
|
||||||
void onAboutActionTriggered();
|
void onAboutActionTriggered();
|
||||||
|
void onCheckForUpdatesActionTriggered();
|
||||||
|
|
||||||
void onGameListEntrySelected(const GameListEntry* entry);
|
void onGameListEntrySelected(const GameListEntry* entry);
|
||||||
void onGameListEntryDoubleClicked(const GameListEntry* entry);
|
void onGameListEntryDoubleClicked(const GameListEntry* entry);
|
||||||
|
|
Loading…
Reference in a new issue