mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-26 03:09:08 +00:00
HackStudio: Fix the labels of project opening menu and dialog
This commit is contained in:
committed by
Andreas Kling
parent
5c37570dfc
commit
f15e9ee0fc
@@ -396,8 +396,8 @@ int main(int argc, char** argv)
|
||||
update_actions();
|
||||
});
|
||||
|
||||
auto open_action = GUI::Action::create("Open Project", { Mod_Ctrl | Mod_Shift, Key_O }, Gfx::Bitmap::load_from_file("/res/icons/16x16/open.png"), [&](auto&) {
|
||||
auto open_path = GUI::FilePicker::get_open_filepath();
|
||||
auto open_action = GUI::Action::create("Open project...", { Mod_Ctrl | Mod_Shift, Key_O }, Gfx::Bitmap::load_from_file("/res/icons/16x16/open.png"), [&](auto&) {
|
||||
auto open_path = GUI::FilePicker::get_open_filepath("Open project");
|
||||
if (!open_path.has_value())
|
||||
return;
|
||||
open_project(open_path.value());
|
||||
|
||||
Reference in New Issue
Block a user