diff options
| author | SulfurNitride <SulfurNitride@users.noreply.github.com> | 2026-04-23 19:48:51 -0500 |
|---|---|---|
| committer | SulfurNitride <SulfurNitride@users.noreply.github.com> | 2026-04-23 19:48:51 -0500 |
| commit | 64241ff84673ce7400741c83c5b4445746cc5fd9 (patch) | |
| tree | 51154a33e7c566395d6bd02b91c936c91920ce36 /src | |
| parent | b36a4f0c564d777f82b24a36a265b37ffbeafd2d (diff) | |
Stop Category Migration dialog firing on every Fluorine launch
Upstream MO2 gates the one-time MO2 2.4 -> 2.5 category-migration dialog
on `lastVersion < 2.5`. Fluorine's 0.x.y schema change means lastVersion
is 0.x.y, which is always < 2.5, so the dialog nagged on every startup.
Skip it when lastVersion has major=0 (Fluorine).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'src')
| -rw-r--r-- | src/src/mainwindow.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/src/mainwindow.cpp b/src/src/mainwindow.cpp index 8c79454..39a5c09 100644 --- a/src/src/mainwindow.cpp +++ b/src/src/mainwindow.cpp @@ -1366,7 +1366,15 @@ void MainWindow::showEvent(QShowEvent* event) m_OrganizerCore.settings().setFirstStart(false);
} else {
auto& settings = m_OrganizerCore.settings();
- if (m_LastVersion < QVersionNumber(2, 5) &&
+ // The category migration dialog was meant to fire once per upgrade
+ // across the upstream MO2 2.4 -> 2.5 cut. Fluorine now stores its own
+ // 0.x.y version in the same slot, so lastVersion < 2.5 is true on
+ // every Fluorine launch and the dialog would nag forever. Skip it
+ // when lastVersion looks like a Fluorine build.
+ const bool fluorineVersionScheme =
+ m_LastVersion.majorVersion() == 0;
+ if (!fluorineVersionScheme &&
+ m_LastVersion < QVersionNumber(2, 5) &&
!GlobalSettings::hideCategoryReminder()) {
QMessageBox migrateCatDialog;
migrateCatDialog.setWindowTitle("Category Migration");
|
