Skip to content

Commit

Permalink
Added initialization to log when repeating
Browse files Browse the repository at this point in the history
  • Loading branch information
lhhunghimself committed Jan 8, 2024
1 parent 661083e commit 0e30494
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
1 change: 1 addition & 0 deletions coreutils/BwBase.py
Original file line number Diff line number Diff line change
Expand Up @@ -3021,6 +3021,7 @@ def onRunFinished(self, code=None, status=None):
sleep(10)
self.status="Restarting"
self.setStatusMessage("Restarting")
self.pConsole = ConsoleProcess(console=self.console, finishHandler=self.onRunFinished)
self.startJob()
return
self.bgui.reenableAll(self)
Expand Down
20 changes: 18 additions & 2 deletions orangePatches/canvasmain.py
Original file line number Diff line number Diff line change
Expand Up @@ -716,7 +716,14 @@ def setup_actions(self):
triggered=self.set_signal_freeze,
icon=canvas_icons("Pause.svg"),
)

self.autorestart = QAction(
self.tr("Auto restart"),
self,
objectName="auto-restart-action",
checkable=True,
triggered=self.autorestart,
)
self.autorestart.setChecked(False)
self.toggle_tool_dock_expand = QAction(
self.tr("Expand Tool Dock"),
self,
Expand Down Expand Up @@ -867,6 +874,12 @@ def setup_menu(self):
self.toolDock_menu.addAction(self.editDockAction)

menu_bar.addMenu(self.toolDock_menu)

# ToolBar menu
self.autorestart_menu = QMenu(self.tr("&AutoRestart"), self)
self.autorestart_menu.addAction(self.autorestart)
menu_bar.addMenu(self.autorestart_menu)

# self.scheduler_menu = QMenu(self.tr('&Scheduler'), self)
# self.scheduler_menu.addAction(self.editServersAction)
# self.scheduler_menu.addAction(self.serverlessAction)
Expand Down Expand Up @@ -2138,7 +2151,10 @@ def _on_dock_location_changed(self, location):
"""
self.__update_scheme_margins()


def autorestart(self):
self.reload_last

def set_tool_dock_expanded(self, expanded):
"""
Set the dock widget expanded state.
Expand Down

0 comments on commit 0e30494

Please sign in to comment.