Files
dusklight/src/dusk/ui/reporting.hpp
T
SuperDude88 e7ab978a30 Crash Reporting Popup (#879)
* Initial Draft

- Add draft crash report window on startup

If you want to disable them before/during startup, there is a command line option to force it

* Fixes

- Update language to be more precise, consistent with settings menu
- Actually shut down reporting properly if you disable it
- Fix my silly syntax errors

* Update text & use Sentry consent

---------

Co-authored-by: Luke Street <luke@street.dev>
2026-05-10 18:37:22 -06:00

29 lines
446 B
C++

#pragma once
#if DUSK_ENABLE_SENTRY_NATIVE
#include "component.hpp"
#include "window.hpp"
#include <memory>
#include <vector>
namespace dusk::ui {
class CrashReportWindow : public WindowSmall {
public:
CrashReportWindow();
bool focus() override;
protected:
bool handle_nav_command(Rml::Event& event, NavCommand cmd) override;
private:
std::vector<std::unique_ptr<Component>> mButtons;
};
} // namespace dusk::ui
#endif