mirror of
https://github.com/ciromattia/kcc
synced 2025-12-19 04:31:50 +00:00
Fixed GUI bug
This commit is contained in:
@@ -1168,6 +1168,8 @@ class KCCGUI(KCC_ui.Ui_KCC):
|
|||||||
GUI.FormatBox.addItem(eval('self.icons.' + f + 'Format'), f)
|
GUI.FormatBox.addItem(eval('self.icons.' + f + 'Format'), f)
|
||||||
if self.lastDevice > GUI.DeviceBox.count():
|
if self.lastDevice > GUI.DeviceBox.count():
|
||||||
self.lastDevice = 0
|
self.lastDevice = 0
|
||||||
|
if profilesGUI[self.lastDevice] == "Separator":
|
||||||
|
self.lastDevice = 0
|
||||||
if self.currentFormat > GUI.FormatBox.count():
|
if self.currentFormat > GUI.FormatBox.count():
|
||||||
self.currentFormat = 0
|
self.currentFormat = 0
|
||||||
GUI.DeviceBox.setCurrentIndex(self.lastDevice)
|
GUI.DeviceBox.setCurrentIndex(self.lastDevice)
|
||||||
|
|||||||
Reference in New Issue
Block a user