fix: gray out unavailable hardware codec setting

This commit is contained in:
dijunkun
2026-07-23 11:10:02 +08:00
parent 2c20599800
commit 31b8983328
5 changed files with 13 additions and 6 deletions
+2 -2
View File
@@ -1782,9 +1782,9 @@ void GuiApplication::SyncMainWindow() {
#if (((defined(_WIN32) || defined(__linux__)) && !defined(__aarch64__) && \
!defined(__arm__) && USE_CUDA) || \
defined(__APPLE__))
ui_->main->set_hardware_codec_visible(true);
ui_->main->set_hardware_codec_available(true);
#else
ui_->main->set_hardware_codec_visible(false);
ui_->main->set_hardware_codec_available(false);
#endif
if (show_offline_warning_window_) {