From 6d19b33e32ff9c51234d3274405ae8d5425a239e Mon Sep 17 00:00:00 2001 From: WerWolv Date: Sat, 3 Jun 2023 23:18:43 +0200 Subject: [PATCH] fix: Don't require providers to be writable to save a project --- plugins/builtin/source/content/main_menu_items.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/builtin/source/content/main_menu_items.cpp b/plugins/builtin/source/content/main_menu_items.cpp index bde30cb58..6c4bb0dc8 100644 --- a/plugins/builtin/source/content/main_menu_items.cpp +++ b/plugins/builtin/source/content/main_menu_items.cpp @@ -333,7 +333,7 @@ namespace hex::plugin::builtin { ContentRegistry::Interface::addMenuItem({ "hex.builtin.menu.file", "hex.builtin.menu.file.project", "hex.builtin.menu.file.project.save_as" }, 1500, ALT + SHIFT + Keys::S, - saveProjectAs, [&] { return ImHexApi::Provider::isValid() && ImHexApi::Provider::get()->isWritable(); }); + saveProjectAs, noRunningTaskAndValidProvider); ContentRegistry::Interface::addMenuItemSeparator({ "hex.builtin.menu.file" }, 2000);