Quellcode durchsuchen

bro just async

pull/1/head
Burrit0z vor 4 Jahren
Ursprung
Commit
028d4a4846
2 geänderte Dateien mit 3 neuen und 1 gelöschten Zeilen
  1. +1
    -1
      KAIBattery.mm
  2. +2
    -0
      Kai.xm

+ 1
- 1
KAIBattery.mm Datei anzeigen

@@ -80,7 +80,7 @@ long long lastPercentage;

} else if(!shouldAdd) {
dispatch_async(dispatch_get_main_queue(), ^{
[cell removeFromSuperview];
[cell removeFromSuperview];
});
}
}

+ 2
- 0
Kai.xm Datei anzeigen

@@ -81,11 +81,13 @@
isUpdating = YES;

//NSLog(@"kai: kai info will update");
dispatch_async(dispatch_get_main_queue(), ^{

[[KAIBattery sharedInstance] updateBattery];
[self KaiUpdate];

isUpdating = NO;
});

/*isUpdating = YES;
[UIView animateWithDuration:0.3 animations:^{

Laden…
Abbrechen
Speichern