View Single Post
laasonen's Avatar
Posts: 565 | Thanked: 618 times | Joined on Jun 2010 @ Finland
#49
Originally Posted by pierrem View Post
Hi laasonen, and thanks for this applet

When you test for a mismatch between current status and actual loaded modules, you should update status and buttons accordingly, otherwise, it results in a "bleeding edge drivers" button that refuses to load "stock drivers" since they are already loaded.


Here is the modified click function with one line added and one line modified in bold
Code:
	def click(self, button):
		if self.getDriverStatus() != self.status:
			if self.status:
				self.Notifications.notify("Stock drivers are already in use")
			else:
				self.Notifications.notify("Bleeding Edge drivers are already in use")
			self.status=self.getDriverStatus()
		else:
			folder = self.Config.getFolder()
			if self.Config.checkFolder(folder):
				if self.status:
					self.loadDrivers(folder, False)
				else:
					self.loadDrivers(folder, True)
			else:
				SetupDialog(self)
		self.updateButton()
Thanks. Uploading new version.
__________________
Couple of my applications:
ConnLock - Advanced phone lock
Sanakirja.org - A Sanakirja.org dictionary client
Wlan Driver Selector Applet - Switch easily between stock and bleeding edge drivers