mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-02 21:47:40 -05:00
feat: Added banners, replace some modals with them
This commit is contained in:
18
lib/libimhex/source/ui/banner.cpp
Normal file
18
lib/libimhex/source/ui/banner.cpp
Normal file
@@ -0,0 +1,18 @@
|
||||
#include <hex/ui/banner.hpp>
|
||||
#include <hex/helpers/auto_reset.hpp>
|
||||
|
||||
namespace hex::impl {
|
||||
|
||||
[[nodiscard]] std::list<std::unique_ptr<BannerBase>> &BannerBase::getOpenBanners() {
|
||||
static AutoReset<std::list<std::unique_ptr<BannerBase>>> openBanners;
|
||||
|
||||
return openBanners;
|
||||
}
|
||||
|
||||
std::mutex& BannerBase::getMutex() {
|
||||
static std::mutex mutex;
|
||||
|
||||
return mutex;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user