Browse Source

:vibeok: :tada:

pull/1/head
Burrit0z 4 years ago
parent
commit
5882189bc4
2 changed files with 6 additions and 2 deletions
  1. +5
    -1
      KAIBatteryPlatter.mm
  2. +1
    -1
      kaiprefs/Resources/Root.plist

+ 5
- 1
KAIBatteryPlatter.mm View File

@@ -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 View File

@@ -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>

Loading…
Cancel
Save