Browse Source

make sure animations don't overlap and bump version

Thomas Buck 4 years ago
parent
commit
571c430c1a
3 changed files with 6 additions and 4 deletions
  1. 1
    1
      linux/PKGBUILD
  2. 1
    1
      linux/README.md
  3. 4
    2
      linux/caselights

+ 1
- 1
linux/PKGBUILD View File

@@ -1,6 +1,6 @@
1 1
 # Maintainer: Thomas Buck <thomas@xythobuz.de>
2 2
 pkgname=CaseLights
3
-pkgver=0.1
3
+pkgver=0.2
4 4
 pkgrel=1
5 5
 pkgdesc="RGB LED and UV strip controls"
6 6
 arch=('any')

+ 1
- 1
linux/README.md View File

@@ -3,7 +3,7 @@
3 3
 Simple Python Qt Linux client for CaseLights. Install on Arch Linux like this:
4 4
 
5 5
     makepkg
6
-    sudo pacman -U CaseLights-0.1.1-any.pkg.tar.xz
6
+    sudo pacman -U CaseLights-0.2-1-any.pkg.tar.xz
7 7
 
8 8
 Or on all other linux distros:
9 9
 

+ 4
- 2
linux/caselights View File

@@ -20,7 +20,7 @@ from PyQt5.QtCore import QCoreApplication, QSettings
20 20
 class CaseLights():
21 21
     name = "CaseLights"
22 22
     vendor = "xythobuz"
23
-    version = "0.1"
23
+    version = "0.2"
24 24
 
25 25
     iconPath = "/usr/share/pixmaps/"
26 26
     iconName = "caselights_icon.png"
@@ -35,7 +35,7 @@ class CaseLights():
35 35
 
36 36
     slowFadeUpdateFreq = 5
37 37
     fastFadeUpdateFreq = 20
38
-    cpuUsageUpdateFreq = 1
38
+    cpuUsageUpdateFreq = 2
39 39
     fadeSaturation = 1.0
40 40
     fadeValue = 1.0
41 41
     fadeHueCounter = 0
@@ -267,6 +267,8 @@ class CaseLights():
267 267
 
268 268
     def animOff(self):
269 269
         self.animationRunning = False
270
+        if self.animation != None:
271
+            self.animation.join()
270 272
         self.animation = None
271 273
         self.printRGBStrings("0", "0", "0")
272 274
         time.sleep(0.1)

Loading…
Cancel
Save