QueueGroup: Also update movement arrows when a widget is deleted
This commit is contained in:
parent
f2745a9551
commit
c0b98978f1
1 changed files with 1 additions and 1 deletions
|
@ -127,6 +127,7 @@ class QueueGroup(QGroupBox):
|
||||||
widget: QueueWidget = QueueWidget(item, old_igame, parent=self.__container)
|
widget: QueueWidget = QueueWidget(item, old_igame, parent=self.__container)
|
||||||
widget.toggle_arrows(self.__queue.index(item.options.app_name), len(self.__queue))
|
widget.toggle_arrows(self.__queue.index(item.options.app_name), len(self.__queue))
|
||||||
widget.destroyed.connect(self.__update_group)
|
widget.destroyed.connect(self.__update_group)
|
||||||
|
widget.destroyed.connect(self.__update_arrows)
|
||||||
widget.remove.connect(self.remove)
|
widget.remove.connect(self.remove)
|
||||||
widget.force.connect(self.__on_force)
|
widget.force.connect(self.__on_force)
|
||||||
widget.move_up.connect(self.__on_move_up)
|
widget.move_up.connect(self.__on_move_up)
|
||||||
|
@ -184,7 +185,6 @@ class QueueGroup(QGroupBox):
|
||||||
widget: QueueWidget = self.__find_widget(app_name)
|
widget: QueueWidget = self.__find_widget(app_name)
|
||||||
self.__container.layout().removeWidget(widget)
|
self.__container.layout().removeWidget(widget)
|
||||||
widget.deleteLater()
|
widget.deleteLater()
|
||||||
self.__update_arrows()
|
|
||||||
|
|
||||||
@pyqtSlot(str)
|
@pyqtSlot(str)
|
||||||
def remove(self, app_name: str):
|
def remove(self, app_name: str):
|
||||||
|
|
Loading…
Reference in a new issue