qt: Disable the Discord integration menu item if the Discord library isn't loaded
This commit is contained in:
@@ -333,6 +333,8 @@ MainWindow::MainWindow(QWidget *parent)
|
|||||||
|
|
||||||
#ifndef DISCORD
|
#ifndef DISCORD
|
||||||
ui->actionEnable_Discord_integration->setVisible(false);
|
ui->actionEnable_Discord_integration->setVisible(false);
|
||||||
|
#else
|
||||||
|
ui->actionEnable_Discord_integration->setEnabled(discord_loaded);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined Q_OS_WINDOWS || defined Q_OS_MACOS
|
#if defined Q_OS_WINDOWS || defined Q_OS_MACOS
|
||||||
|
Reference in New Issue
Block a user