mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-09 15:54:47 -07:00
Updater for websockets (#3581)
* Dont clobber password when pulling down server list. * Force download server list on client update.
This commit is contained in:
parent
1b3da22dd7
commit
d519f992d2
5 changed files with 39 additions and 25 deletions
|
|
@ -864,6 +864,7 @@ void MainWindow::alertForcedOracleRun(const QString &newVersion)
|
|||
"Oracle will now launch to update your card database.")
|
||||
.arg(newVersion));
|
||||
actCheckCardUpdates();
|
||||
actCheckServerUpdates();
|
||||
}
|
||||
|
||||
MainWindow::~MainWindow()
|
||||
|
|
@ -1127,6 +1128,13 @@ void MainWindow::cardUpdateFinished(int, QProcess::ExitStatus)
|
|||
QtConcurrent::run(db, &CardDatabase::loadCardDatabases);
|
||||
}
|
||||
|
||||
void MainWindow::actCheckServerUpdates()
|
||||
{
|
||||
auto hps = new HandlePublicServers(this);
|
||||
hps->downloadPublicServers();
|
||||
connect(hps, &HandlePublicServers::sigPublicServersDownloadedSuccessfully, [=]() { hps->deleteLater(); });
|
||||
}
|
||||
|
||||
void MainWindow::refreshShortcuts()
|
||||
{
|
||||
aConnect->setShortcuts(settingsCache->shortcuts().getShortcut("MainWindow/aConnect"));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue