Skip to content

Commit

Permalink
Updated text and committed (and removed) TODO reminders.
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoophobus committed Jul 18, 2023
1 parent 4baf375 commit 443a983
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions activity_browser/ui/tables/plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,18 +37,18 @@ def mousePressEvent(self, e):
proxy = self.indexAt(e.pos())
if proxy.column() == 0:
new_value = not bool(proxy.data())
plugin_name = self.model.get_plugin_name(proxy) #
# plugin_name = self.model.get_plugin_name(proxy)
if not new_value:
msgBox = QMessageBox()
msgBox.setText("Remove plugin from project ?")
msgBox.setInformativeText("This will removed all data created by the plugin.")
msgBox.setInformativeText("This will remove all data created by the plugin.")
msgBox.setStandardButtons(QMessageBox.Ok | QMessageBox.Cancel)
msgBox.setDefaultButton(QMessageBox.Cancel)
ret = msgBox.exec_()
if ret == QMessageBox.Cancel:
new_value = not new_value
self.model.sync(proxy, new_value) # TODO check this usage it is currently employed to ensure synchronization
super().mousePressEvent(e) # TODO but this may not be required
self.model.sync(proxy, new_value)
super().mousePressEvent(e)

@property
def selected_plugin(self) -> str:
Expand Down

0 comments on commit 443a983

Please sign in to comment.