Browse Source

make sure animations don't overlap and bump version

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

+ 1
- 1
linux/README.md View File

3
 Simple Python Qt Linux client for CaseLights. Install on Arch Linux like this:
3
 Simple Python Qt Linux client for CaseLights. Install on Arch Linux like this:
4
 
4
 
5
     makepkg
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
 Or on all other linux distros:
8
 Or on all other linux distros:
9
 
9
 

+ 4
- 2
linux/caselights View File

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

Loading…
Cancel
Save