qt: Disable the Discord integration menu item if the Discord library isn't loaded

This commit is contained in:
Alexander Babikov
2023-09-14 23:20:58 +05:00
parent f7bd0afbac
commit 363e48eaf5

View File

@@ -333,6 +333,8 @@ MainWindow::MainWindow(QWidget *parent)
#ifndef DISCORD
ui->actionEnable_Discord_integration->setVisible(false);
#else
ui->actionEnable_Discord_integration->setEnabled(discord_loaded);
#endif
#if defined Q_OS_WINDOWS || defined Q_OS_MACOS