|
@@ -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))) {
|