diff options
-rw-r--r-- | MobileCydia.mm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm index 8da8f28..cdc9a52 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -4091,7 +4091,7 @@ static NSString *Warning_; [indirect_ setButtonTitle:button withStyle:style toFunction:function]; } -- (void) setToken:(NSString *)token { +- (void) _setToken:(NSString *)token { if (Token_ != nil) [Token_ release]; Token_ = [token retain]; @@ -4100,6 +4100,10 @@ static NSString *Warning_; Changed_ = true; } +- (void) setToken:(NSString *)token { + [self performSelectorOnMainThread:@selector(_setToken:) withObject:token waitUntilDone:NO]; +} + - (void) setPopupHook:(id)function { [indirect_ setPopupHook:function]; } |