mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
hopefully it will now compile on linux
This commit is contained in:
parent
05d0b20919
commit
ca5bb104db
8
dependencies/wintoast.pri
vendored
8
dependencies/wintoast.pri
vendored
|
@ -1,3 +1,5 @@
|
||||||
INCLUDEPATH += $$PWD/../lib/wintoast/src/
|
win32 {
|
||||||
SOURCES += \
|
INCLUDEPATH += $$PWD/../lib/wintoast/src/
|
||||||
$$PWD/../lib/WinToast/src/wintoastlib.cpp
|
SOURCES += \
|
||||||
|
$$PWD/../lib/WinToast/src/wintoastlib.cpp
|
||||||
|
}
|
||||||
|
|
|
@ -11,7 +11,9 @@
|
||||||
#include "singletons/WindowManager.hpp"
|
#include "singletons/WindowManager.hpp"
|
||||||
#include "widgets/Window.hpp"
|
#include "widgets/Window.hpp"
|
||||||
|
|
||||||
#include <wintoastlib.h>
|
#ifdef Q_OS_WIN
|
||||||
|
# include <wintoastlib.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <QDesktopServices>
|
#include <QDesktopServices>
|
||||||
#include <QDir>
|
#include <QDir>
|
||||||
|
|
|
@ -26,8 +26,11 @@ namespace chatterino {
|
||||||
|
|
||||||
bool Toasts::isEnabled()
|
bool Toasts::isEnabled()
|
||||||
{
|
{
|
||||||
|
#ifdef Q_OS_WIN
|
||||||
return WinToastLib::WinToast::isCompatible() &&
|
return WinToastLib::WinToast::isCompatible() &&
|
||||||
getSettings()->notificationToast;
|
getSettings()->notificationToast;
|
||||||
|
#endif
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Toasts::sendChannelNotification(const QString &channelName, Platform p)
|
void Toasts::sendChannelNotification(const QString &channelName, Platform p)
|
||||||
|
|
|
@ -15,7 +15,9 @@ public:
|
||||||
static bool isEnabled();
|
static bool isEnabled();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
#ifdef Q_OS_WIN
|
||||||
void sendWindowsNotification(const QString &channelName, Platform p);
|
void sendWindowsNotification(const QString &channelName, Platform p);
|
||||||
|
#endif
|
||||||
static void fetchChannelAvatar(
|
static void fetchChannelAvatar(
|
||||||
const QString channelName,
|
const QString channelName,
|
||||||
std::function<void(QString)> successCallback);
|
std::function<void(QString)> successCallback);
|
||||||
|
|
Loading…
Reference in a new issue