Add two missing #ifdef CHATTERINO_HAVE_PLUGINS

This commit is contained in:
Mm2PL 2023-02-02 14:02:38 +01:00
parent 67a6821cad
commit 16d2d02787
No known key found for this signature in database
GPG key ID: 94AC9B80EFA15ED9
2 changed files with 6 additions and 1 deletions

View file

@ -12,7 +12,6 @@
#include "controllers/commands/CommandModel.hpp"
#include "controllers/plugins/PluginController.hpp"
#include "controllers/userdata/UserDataController.hpp"
#include "lua.h"
#include "messages/Message.hpp"
#include "messages/MessageBuilder.hpp"
#include "messages/MessageElement.hpp"
@ -52,6 +51,10 @@
#include <QRegularExpression>
#include <QUrl>
#ifdef CHATTERINO_HAVE_PLUGINS
# include "lua.h"
#endif
namespace {
using namespace chatterino;

View file

@ -113,8 +113,10 @@ AboutPage::AboutPage()
addLicense(form.getElement(), "miniaudio",
"https://github.com/mackron/miniaudio",
":/licenses/miniaudio.txt");
#ifdef CHATTERINO_HAVE_PLUGINS
addLicense(form.getElement(), "lua", "https://lua.org",
":/licenses/lua.txt");
#endif
}
// Attributions