View Single Post
Posts: 107 | Thanked: 173 times | Joined on Feb 2011
#48
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()
 

The Following 3 Users Say Thank You to pierrem For This Useful Post: