diff --git a/Source/hoc-clk/overlay/src/ui/gui/app_profile_gui.cpp b/Source/hoc-clk/overlay/src/ui/gui/app_profile_gui.cpp index 7364711e..645720c0 100644 --- a/Source/hoc-clk/overlay/src/ui/gui/app_profile_gui.cpp +++ b/Source/hoc-clk/overlay/src/ui/gui/app_profile_gui.cpp @@ -450,14 +450,8 @@ void AppProfileGui::listUI() this->addProfileUI(HocClkProfile_HandheldChargingUSB); } -std::string jumpItemString = "Edit App Profile"; - void AppProfileGui::changeTo(std::uint64_t applicationId) { - if (applicationId == HOCCLK_GLOBAL_PROFILE_TID) { - jumpItemString = "Edit Global Profile"; - } - HocClkTitleProfileList* profileList = new HocClkTitleProfileList; Result rc = hocclkIpcGetProfiles(applicationId, profileList); if(R_FAILED(rc)) @@ -487,5 +481,5 @@ void AppProfileGui::update() } std::string AppProfileGui::getJumpToItemName() { - return jumpItemString; -} \ No newline at end of file + return this->applicationId == HOCCLK_GLOBAL_PROFILE_TID ? "Edit Global Profile" : "Edit App Profile"; +}