Ver código fonte

:vibeok: :tada:

pull/1/head
Burrit0z 4 anos atrás
pai
commit
5882189bc4
2 arquivos alterados com 6 adições e 2 exclusões
  1. +5
    -1
      KAIBatteryPlatter.mm
  2. +1
    -1
      kaiprefs/Resources/Root.plist

+ 5
- 1
KAIBatteryPlatter.mm Ver arquivo

@@ -16,7 +16,6 @@ NSTimer *queueTimer = nil;
self.stack.alignment = 0;
self.oldCountOfDevices = -100;
self.queued = NO;
self.clipsToBounds = NO;

[self setMinimumZoomScale:1];
[self setMaximumZoomScale:1];
@@ -44,6 +43,9 @@ long long lastPercentage;
if(self.oldCountOfDevices == -100) {
self.oldCountOfDevices = [devices count] + 1;
}
for(KAIBatteryCell *cell in self.stack.subviews) {
[cell updateInfo];
}

if(!self.isUpdating && self.oldCountOfDevices != 0 && ([devices count] + 1 == self.oldCountOfDevices || [devices count] - 1 == self.oldCountOfDevices || [devices count] == self.oldCountOfDevices)) {
//if(!self.isUpdating) {
@@ -173,6 +175,8 @@ long long lastPercentage;
}
}
}

[self setContentSize:self.stack.frame.size];
}

-(void)layoutSubviews {

+ 1
- 1
kaiprefs/Resources/Root.plist Ver arquivo

@@ -188,7 +188,7 @@
<key>cell</key>
<string>PSGroupCell</string>
<key>label</key>
<string>Banner Alignment</string>
<string>Banner Alignment (Vertical mode)</string>
</dict>
<dict>
<key>cell</key>

Carregando…
Cancelar
Salvar