[UI] Host Notification: Replace previous notification in case of new one

This commit is contained in:
Gliniak
2024-08-27 20:48:22 +02:00
parent ee210db096
commit 9c8a575b76
5 changed files with 58 additions and 25 deletions

View File

@@ -26,6 +26,9 @@ class ImGuiHostNotification : public ImGuiNotification {
~ImGuiHostNotification();
protected:
const uint64_t notification_initial_delay =
std::chrono::milliseconds(200).count();
const ImVec2 CalculateNotificationSize(ImVec2 text_size,
float scale) override;