1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-23 06:44:38 +01:00

Re-introduce message on successful screenshot (#21983)

* Re-introduce message on successful screenshot

* Automatically close previous screenshot notices before new ones
This commit is contained in:
Aaron van Geffen
2024-05-10 15:04:12 +02:00
committed by GitHub
parent ba9c84f835
commit 347ce53f26
9 changed files with 44 additions and 21 deletions

View File

@@ -209,14 +209,14 @@ public:
}
}
WindowBase* ShowError(StringId title, StringId message, const Formatter& args) override
WindowBase* ShowError(StringId title, StringId message, const Formatter& args, bool autoClose /* = false */) override
{
return ErrorOpen(title, message, args);
return ErrorOpen(title, message, args, autoClose);
}
WindowBase* ShowError(std::string_view title, std::string_view message) override
WindowBase* ShowError(std::string_view title, std::string_view message, bool autoClose /* = false */) override
{
return ErrorOpen(title, message);
return ErrorOpen(title, message, autoClose);
}
WindowBase* OpenIntent(Intent* intent) override