From 3b650952db4d9b5ae1d58d4de50404d750e6cfda Mon Sep 17 00:00:00 2001 From: Lightos1 <124387232+Lightos1@users.noreply.github.com> Date: Thu, 6 Aug 2026 16:13:15 +0200 Subject: [PATCH] overlay: jumpToItem fix --- Source/hoc-clk/overlay/src/ui/gui/app_profile_gui.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) 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"; +}