]> Nutra Git (v1) - nutratech/gui.git/commitdiff
small lint; version bump & release tweak/fix
authorShane Jaroch <chown_tee@proton.me>
Thu, 22 Jan 2026 00:48:14 +0000 (19:48 -0500)
committerShane Jaroch <chown_tee@proton.me>
Thu, 22 Jan 2026 00:48:14 +0000 (19:48 -0500)
.github/workflows/release.yml
.github/workflows/version-bump.yml
src/db/mealrepository.cpp
src/widgets/dailylogwidget.cpp

index ef4c2070df9e2a7286d3340e1f8e467450734d67..e73691704800243b3712c71501f1572edb7aa46d 100644 (file)
@@ -167,10 +167,10 @@ jobs:
         with:
           prerelease: ${{ steps.check_prerelease.outputs.is_prerelease }}
           files: |
-            nutra-linux-20.04/nutra
-            nutra-linux-22.04/nutra
-            nutra-linux-24.04/nutra
-            nutra-win64.exe/nutra.exe
-            nutra-macos.app/**
+            artifacts/nutra-linux-20.04/nutra
+            artifacts/nutra-linux-22.04/nutra
+            artifacts/nutra-linux-24.04/nutra
+            artifacts/nutra-win64.exe/nutra.exe
+            artifacts/nutra-macos.app/**
         env:
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
index 1714614ef2bf9de2380790ddc42cff647417457a..bbff7825571a99b5f34a2ad190cb952463e095cd 100644 (file)
@@ -96,5 +96,5 @@ jobs:
           echo "Bumping from $LATEST_TAG to $NEW_TAG"
           echo "NEW_TAG=$NEW_TAG" >> $GITHUB_ENV
 
-          git tag ${{ env.NEW_TAG }}
-          git push origin ${{ env.NEW_TAG }}
+          git tag $NEW_TAG
+          git push origin $NEW_TAG
index 77a492fdd877180242d847cb59698fdeff3b32f4..3f98199b4d59d2e05bcdce0d3347b4a9a1f5710d 100644 (file)
@@ -148,7 +148,6 @@ void MealRepository::removeLogEntry(int logId) {
     QSqlQuery query(db);
     query.prepare("DELETE FROM log_food WHERE id = ?");
     query.addBindValue(logId);
-    query.addBindValue(logId);
     if (!query.exec()) {
         qCritical() << "Failed to remove log entry:" << query.lastError().text();
     }
index b0b98709bb662711429b5d3e82db6e8d7591e44c..e2800fa511cb6591d4f4479cea8b2d75d2f0dfa8 100644 (file)
@@ -153,8 +153,8 @@ void DailyLogWidget::updateAnalysis() {
         if (pct > 100) {
             bar->setStyleSheet("QProgressBar::chunk { background-color: #8e44ad; }");
         } else {
-            // Reset style (hacky, ideally use separate stylesheet)
-            // bar->setStyleSheet("");
+            // Reset style
+            bar->setStyleSheet("");
         }
     };