2023-12-19 23:21:20 +01:00
|
|
|
#include <hex/ui/toast.hpp>
|
2024-01-30 11:21:34 +01:00
|
|
|
#include <hex/helpers/auto_reset.hpp>
|
2023-12-19 23:21:20 +01:00
|
|
|
|
|
|
|
namespace hex::impl {
|
|
|
|
|
|
|
|
[[nodiscard]] std::list<std::unique_ptr<ToastBase>> &ToastBase::getQueuedToasts() {
|
2024-01-30 11:21:34 +01:00
|
|
|
static AutoReset<std::list<std::unique_ptr<ToastBase>>> queuedToasts;
|
2023-12-19 23:21:20 +01:00
|
|
|
|
|
|
|
return queuedToasts;
|
|
|
|
}
|
|
|
|
|
|
|
|
std::mutex& ToastBase::getMutex() {
|
|
|
|
static std::mutex mutex;
|
|
|
|
|
|
|
|
return mutex;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|