make recovery device support an optional feature

This commit is contained in:
uncor3
2025-11-08 05:05:17 +00:00
parent d1a113987c
commit bdf248ce26
10 changed files with 93 additions and 17 deletions
+4 -1
View File
@@ -90,8 +90,11 @@ void WelcomeWidget::setupUI()
m_mainLayout->addWidget(m_githubLabel, 0, Qt::AlignCenter);
// FIXME: we need to disable specific deps in diagnosewidget
// not the whole widget when EnableRecoveryDeviceSupport is off
// no additional deps needed on macOS
#ifndef __APPLE__
#if !defined(__APPLE__) && defined(ENABLE_RECOVERY_DEVICE_SUPPORT)
DiagnoseWidget *diagnoseWidget = new DiagnoseWidget();
m_mainLayout->addWidget(diagnoseWidget);
#endif