mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-06-27 17:02:55 -04:00
e7ab978a30
* 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>
29 lines
446 B
C++
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
|