From c214006734ed349ca90ca9345a7902aea4a2305c Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Mon, 17 Feb 2014 21:47:51 -0800 Subject: [PATCH] Only do the Cydget setup once (this is important). --- CydgetLoader.mm | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/CydgetLoader.mm b/CydgetLoader.mm index 2e70816..adf5b9d 100644 --- a/CydgetLoader.mm +++ b/CydgetLoader.mm @@ -354,8 +354,14 @@ static void CydgetSetup() { // XXX: this could happen while it is unlocked MSInstanceMessageHook1(id, SBLockScreenView, initWithFrame, CGRect, frame) { self = MSOldCall(frame); - CydgetSetup(); - Activate_(); + + static bool loaded(false); + if (!loaded) { + loaded = true; + CydgetSetup(); + Activate_(); + } + return self; } -- 2.45.2