From cf01fa955c72e0c159557e972d1f5a7005fc2121 Mon Sep 17 00:00:00 2001 From: isanae <14251494+isanae@users.noreply.github.com> Date: Fri, 10 Jul 2020 15:20:01 -0400 Subject: resize data tab columns when migrating from < 2.3 so the new columns are visible --- src/mainwindow.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'src/mainwindow.cpp') diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index b2907db9..dfe0fbde 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -2146,7 +2146,7 @@ void MainWindow::activateProxy(bool activate) busyDialog.setWindowFlags(busyDialog.windowFlags() & ~Qt::WindowContextHelpButtonHint); busyDialog.setWindowModality(Qt::WindowModal); busyDialog.show(); - + QFutureWatcher futureWatcher; QEventLoop loop; connect(&futureWatcher, &QFutureWatcher::finished, @@ -2156,7 +2156,7 @@ void MainWindow::activateProxy(bool activate) futureWatcher.setFuture( QtConcurrent::run(MainWindow::setupNetworkProxy, activate) ); - + // wait for setupNetworkProxy while keeping ui responsive loop.exec(); @@ -2226,6 +2226,11 @@ void MainWindow::processUpdates() { ui->downloadView->header()->hideSection(i); } } + + if (lastVersion < QVersionNumber(2, 3)) { + for (int i=1; idataTree->header()->count(); ++i) + ui->dataTree->setColumnWidth(i, 150); + } } if (currentVersion < lastVersion) { @@ -5794,7 +5799,7 @@ void MainWindow::nxmRequestFailed(QString gameName, int modID, int, QVariant, in { if (error == QNetworkReply::ContentAccessDenied || error == QNetworkReply::ContentNotFoundError) { log::debug("{}", tr("Mod ID %1 no longer seems to be available on Nexus.").arg(modID)); - + // update last checked timestamp on orphaned mods as well to avoid repeating requests QString gameNameReal; for (IPluginGame* game : m_PluginContainer.plugins()) { -- cgit v1.3.1