1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:27:35 +00:00

CrashReporter+HackStudio: Let's call it "Debug in Hack Studio"

"Inspect in Hack Studio" was a bit vague.
This commit is contained in:
Andreas Kling 2021-11-30 16:42:21 +01:00
parent d3bd9f1f0c
commit 85eb0eaad0
3 changed files with 6 additions and 6 deletions

View file

@ -367,9 +367,9 @@ int main(int argc, char** argv)
app->quit();
};
auto& inspect_button = *widget.find_descendant_of_type_named<GUI::Button>("inspect_button");
inspect_button.set_icon(MUST(Gfx::Bitmap::try_load_from_file("/res/icons/16x16/app-hack-studio.png")));
inspect_button.on_click = [&](int) {
auto& debug_button = *widget.find_descendant_of_type_named<GUI::Button>("debug_button");
debug_button.set_icon(MUST(Gfx::Bitmap::try_load_from_file("/res/icons/16x16/app-hack-studio.png")));
debug_button.on_click = [&](int) {
pid_t child;
const char* argv[4] = { "HackStudio", "-c", coredump_path, nullptr };
if ((errno = posix_spawn(&child, "/bin/HackStudio", nullptr, nullptr, const_cast<char**>(argv), environ))) {