fix: clear WinToast on exit (#5728)
This commit is contained in:
@@ -68,6 +68,7 @@
|
|||||||
- Bugfix: Fixed grammar in the user highlight page. (#5602)
|
- Bugfix: Fixed grammar in the user highlight page. (#5602)
|
||||||
- Bugfix: Fixed incorrect message being disabled in some cases upon approving or denying an automod caught message. (#5611)
|
- Bugfix: Fixed incorrect message being disabled in some cases upon approving or denying an automod caught message. (#5611)
|
||||||
- Bugfix: Fixed double-click selection not working when clicking outside a message. (#5617)
|
- Bugfix: Fixed double-click selection not working when clicking outside a message. (#5617)
|
||||||
|
- Bugfix: Fixed a potential rare crash that could occur on Windows if a toast was about to fire just as we were shutting down. (#5728)
|
||||||
- Bugfix: Fixed emotes starting with ":" not tab-completing. (#5603)
|
- Bugfix: Fixed emotes starting with ":" not tab-completing. (#5603)
|
||||||
- Bugfix: Fixed 7TV emotes messing with Qt's HTML. (#5677)
|
- Bugfix: Fixed 7TV emotes messing with Qt's HTML. (#5677)
|
||||||
- Bugfix: Fixed incorrect messages getting replaced visually. (#5683)
|
- Bugfix: Fixed incorrect messages getting replaced visually. (#5683)
|
||||||
|
|||||||
@@ -70,6 +70,13 @@ using WinToastLib::WinToast;
|
|||||||
using WinToastLib::WinToastTemplate;
|
using WinToastLib::WinToastTemplate;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Toasts::~Toasts()
|
||||||
|
{
|
||||||
|
#ifdef Q_OS_WIN
|
||||||
|
WinToast::instance()->clear();
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
bool Toasts::isEnabled()
|
bool Toasts::isEnabled()
|
||||||
{
|
{
|
||||||
#ifdef Q_OS_WIN
|
#ifdef Q_OS_WIN
|
||||||
|
|||||||
@@ -3,6 +3,8 @@
|
|||||||
#include <pajlada/settings/setting.hpp>
|
#include <pajlada/settings/setting.hpp>
|
||||||
#include <QString>
|
#include <QString>
|
||||||
|
|
||||||
|
#include <cstdint>
|
||||||
|
|
||||||
namespace chatterino {
|
namespace chatterino {
|
||||||
|
|
||||||
enum class Platform : uint8_t;
|
enum class Platform : uint8_t;
|
||||||
@@ -17,6 +19,8 @@ enum class ToastReaction {
|
|||||||
class Toasts final
|
class Toasts final
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
~Toasts();
|
||||||
|
|
||||||
void sendChannelNotification(const QString &channelName,
|
void sendChannelNotification(const QString &channelName,
|
||||||
const QString &channelTitle, Platform p);
|
const QString &channelTitle, Platform p);
|
||||||
static QString findStringFromReaction(const ToastReaction &reaction);
|
static QString findStringFromReaction(const ToastReaction &reaction);
|
||||||
|
|||||||
Reference in New Issue
Block a user