Skip to content

Commit

Permalink
fix(obs-ndi): add patch for deprecating Qt function
Browse files Browse the repository at this point in the history
  • Loading branch information
misumisumi committed Oct 27, 2024
1 parent c51aee1 commit 6232667
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 5 deletions.
4 changes: 3 additions & 1 deletion apps/user/desktop/tool/multimedia/obs-studio/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
looking-glass-obs
obs-pipewire-audio-capture
droidcam-obs
obs-ndi
(obs-ndi.overrideAttrs (old: {
patches = old.patches ++ [ ./obs-ndi.patch ];
}))
];
};
};
Expand Down
27 changes: 23 additions & 4 deletions apps/user/desktop/tool/multimedia/obs-studio/obs-ndi.patch
Original file line number Diff line number Diff line change
@@ -1,11 +1,30 @@
--- src/forms/update.cpp 2024-10-21 12:04:28.226835449 +0900
+++ src/forms/update.cpp 2024-10-21 12:05:09.937827059 +0900
@@ -183,7 +183,7 @@
diff --git a/src/forms/obsndi-update.cpp b/src/forms/obsndi-update.cpp
index 0c447af..a29db61 100644
--- a/src/forms/obsndi-update.cpp
+++ b/src/forms/obsndi-update.cpp
@@ -46,6 +46,7 @@
// #include <QNetworkRequest>
#include <QPointer>
#include <QSslSocket>
+#include <QTimeZone>
#include <QTimer>
#include <QUrlQuery>

@@ -174,7 +175,7 @@

auto utcDateTime = QDateTime::fromString(
pluginUpdateInfo.releaseDate, Qt::ISODate);
- utcDateTime.setTimeSpec(Qt::UTC);
+ utcDateTime.setTimeZone(QTimeZone::UTC);
auto formattedUtcDateTime =
utcDateTime.toString("yyyy-MM-dd hh:mm:ss 'UTC'");
textTemp = QString("<h3>%1</h3>")
@@ -190,7 +191,7 @@
ui->checkBoxAutoCheckForUpdates->setChecked(
config->AutoCheckForUpdates());
connect(ui->checkBoxAutoCheckForUpdates,
- &QCheckBox::stateChanged, this, [](int state) {
+ &QCheckBox::checkStateChanged, this, [](int state) {
Config::Current(false)->AutoCheckForUpdates(
Config::Current()->AutoCheckForUpdates(
state == Qt::Checked);
});

0 comments on commit 6232667

Please sign in to comment.