diff --git a/src/features/Keybinds.cpp b/src/features/Keybinds.cpp index e6cda15..8547eda 100644 --- a/src/features/Keybinds.cpp +++ b/src/features/Keybinds.cpp @@ -9,6 +9,7 @@ #include #include +#include #ifdef BETTEREDIT_PRO #include #endif @@ -142,11 +143,13 @@ struct $modify(EditorUI) { this->moveObjectCall(EditCommand::BigDown); }); - #ifdef BETTEREDIT_PRO - this->defineKeybind("group-summary"_spr, [this] { - GroupSummaryPopup::create()->show(); - }); - #endif + if (isProEnabled()) { + this->defineKeybind("group-summary"_spr, [this] { + #ifdef BETTEREDIT_PRO + GroupSummaryPopup::create()->show(); + #endif + }); + } return true; } @@ -423,15 +426,15 @@ struct $modify(EditorUI) { Category::EDITOR_MOVE, true }); -#ifdef BETTEREDIT_PRO - BindManager::get()->registerBindable({ - "group-summary"_spr, - "Open Group Summary", - "", - {}, - Category::EDITOR, false - }); -#endif + if (isProEnabled()) { + BindManager::get()->registerBindable({ + "group-summary"_spr, + "Open Group Summary", + "", + {}, + Category::EDITOR, false + }); + } } #endif