fix: clear WinToast on exit (#5728)
This commit is contained in:
@@ -70,6 +70,13 @@ using WinToastLib::WinToast;
|
||||
using WinToastLib::WinToastTemplate;
|
||||
#endif
|
||||
|
||||
Toasts::~Toasts()
|
||||
{
|
||||
#ifdef Q_OS_WIN
|
||||
WinToast::instance()->clear();
|
||||
#endif
|
||||
}
|
||||
|
||||
bool Toasts::isEnabled()
|
||||
{
|
||||
#ifdef Q_OS_WIN
|
||||
|
||||
@@ -3,6 +3,8 @@
|
||||
#include <pajlada/settings/setting.hpp>
|
||||
#include <QString>
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
namespace chatterino {
|
||||
|
||||
enum class Platform : uint8_t;
|
||||
@@ -17,6 +19,8 @@ enum class ToastReaction {
|
||||
class Toasts final
|
||||
{
|
||||
public:
|
||||
~Toasts();
|
||||
|
||||
void sendChannelNotification(const QString &channelName,
|
||||
const QString &channelTitle, Platform p);
|
||||
static QString findStringFromReaction(const ToastReaction &reaction);
|
||||
|
||||
Reference in New Issue
Block a user