Skip to content

Commit

Permalink
fixed settings missing on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
lmdu committed Nov 5, 2023
1 parent 992ffdd commit d371e5b
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
__all__ = ['DOCKEY_VERSION', 'DOCKEY_BUILD', 'DOCKEY_ABOUT',
'DOCKEY_THANKS']

DOCKEY_VERSION = "0.9.4"
DOCKEY_VERSION = "0.10.0"

DOCKEY_BUILD = "230919"
DOCKEY_BUILD = "231105"

DOCKEY_ABOUT = """
<p>Dockey - Molecular Docking and Virtual Screening</p>
Expand Down
2 changes: 1 addition & 1 deletion src/window.py
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ def create_actions(self):
#preferences actions
self.setting_act = QAction("Settings", self)
self.setting_act.triggered.connect(self.open_setting_dialog)
self.setting_act.setShortcut(QKeySequence.Preferences)
#self.setting_act.setShortcut(QKeySequence.Preferences)

#self.dock_tool_act = QAction("Docking Tools", self)
#self.dock_tool_act.triggered.connect(self.docking_tool_settings)
Expand Down
15 changes: 14 additions & 1 deletion src/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,18 @@ def run(self):
self.signals.success.emit()
self.signals.progress.emit(100)

class ManagerSignals(QObject):
pass

class WorkerManager(QRunnable):
def __init__(self):
super().__init__()
self.setAutoDelete(True)

def run(self):
pass


class WorkerSignals(QObject):
finished = Signal()
refresh = Signal(int)
Expand All @@ -208,6 +220,7 @@ class BaseWorker(QRunnable):

def __init__(self, params):
super(BaseWorker, self).__init__()
self.setAutoDelete(True)
self.jobs = {}
self.params = params
self.signals = WorkerSignals()
Expand All @@ -217,7 +230,6 @@ def __init__(self, params):
self.job_num = self.settings.value('Job/concurrent', 1, int)
self.signals.threads.connect(self.change_job_numbers)
self.signals.stopjob.connect(self.stop_job)
self.setAutoDelete(True)
self.progress = 0
self.job_total = 0
self.job_finish = 0
Expand Down Expand Up @@ -577,6 +589,7 @@ def run(self):
self.signals.message.emit(error)
print(error)


finally:
for job in self.jobs:
self.jobs[job].tempdir.remove()
Expand Down

0 comments on commit d371e5b

Please sign in to comment.