2023-04-07 10:21:27 +02:00
|
|
|
#include <hex/ui/popup.hpp>
|
2024-01-30 11:21:34 +01:00
|
|
|
#include <hex/helpers/auto_reset.hpp>
|
2023-04-07 10:21:27 +02:00
|
|
|
|
2023-04-08 00:58:53 +02:00
|
|
|
namespace hex::impl {
|
2023-04-07 10:21:27 +02:00
|
|
|
|
2023-07-26 13:50:51 +02:00
|
|
|
|
|
|
|
[[nodiscard]] std::vector<std::unique_ptr<PopupBase>> &PopupBase::getOpenPopups() {
|
2024-01-30 11:21:34 +01:00
|
|
|
static AutoReset<std::vector<std::unique_ptr<PopupBase>>> openPopups;
|
2023-07-26 13:50:51 +02:00
|
|
|
|
|
|
|
return openPopups;
|
|
|
|
}
|
|
|
|
|
2023-12-19 23:21:20 +01:00
|
|
|
std::mutex& PopupBase::getMutex() {
|
|
|
|
static std::mutex mutex;
|
|
|
|
|
|
|
|
return mutex;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2023-04-07 10:21:27 +02:00
|
|
|
|
|
|
|
}
|