Skip to content

Commit

Permalink
Added connection for new settings.
Browse files Browse the repository at this point in the history
  • Loading branch information
02bwilson committed Aug 6, 2023
1 parent 757bcbc commit 083ef02
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Widgets/MainWidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ def __init__(self):

self.settings.settingsDisplay.speedChanged.connect(self.dataManager.setSpeed)
self.settings.settingsDisplay.modChanged.connect(self.dataManager.setMod)
self.settings.settingsDisplay.windowSizeChanged.connect(self.dataManager.setWindowSize)

self.signalTable.signalDeleted.connect(self.dataManager.removeSignal)
self.signalTable.signalDeleted.connect(self.addSignalMenu.removeSignal)
Expand Down Expand Up @@ -83,11 +84,13 @@ def __init__(self):

def removePressed(self):
curRow = self.signalTable.tableView.selectionModel().currentIndex().row()
print(curRow)
signalName = self.signalTable.tableModel.item(curRow, 0).text()

self.dataManager.removeSignal(signalName)
self.signalTable.tableModel.clearItemData(curRow)
self.signalTable.tableModel.removeRow(curRow)



def close(self):
super().close()

Expand Down

0 comments on commit 083ef02

Please sign in to comment.