mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-03 05:57:40 -05:00
feat: Added basic toast popups
This commit is contained in:
@@ -9,5 +9,12 @@ namespace hex::impl {
|
||||
return openPopups;
|
||||
}
|
||||
|
||||
std::mutex& PopupBase::getMutex() {
|
||||
static std::mutex mutex;
|
||||
|
||||
return mutex;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
17
lib/libimhex/source/ui/toast.cpp
Normal file
17
lib/libimhex/source/ui/toast.cpp
Normal file
@@ -0,0 +1,17 @@
|
||||
#include <hex/ui/toast.hpp>
|
||||
|
||||
namespace hex::impl {
|
||||
|
||||
[[nodiscard]] std::list<std::unique_ptr<ToastBase>> &ToastBase::getQueuedToasts() {
|
||||
static std::list<std::unique_ptr<ToastBase>> queuedToasts;
|
||||
|
||||
return queuedToasts;
|
||||
}
|
||||
|
||||
std::mutex& ToastBase::getMutex() {
|
||||
static std::mutex mutex;
|
||||
|
||||
return mutex;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user