revert 'get_publisher_tool' and 'show_publisher_tool' arguments

This commit is contained in:
Jakub Trllo 2023-10-17 14:26:14 +02:00
parent 27106bcc72
commit 0f9c30378e

View file

@ -286,9 +286,7 @@ class HostToolsHelper:
dialog.activateWindow()
dialog.showNormal()
def get_publisher_tool(
self, parent=None, controller=None, reset_on_show=None
):
def get_publisher_tool(self, parent=None, controller=None):
"""Create, cache and return publisher window."""
if self._publisher_tool is None:
@ -299,18 +297,15 @@ class HostToolsHelper:
publisher_window = PublisherWindow(
controller=controller,
parent=parent or self._parent,
reset_on_show=reset_on_show
parent=parent or self._parent
)
self._publisher_tool = publisher_window
return self._publisher_tool
def show_publisher_tool(
self, parent=None, controller=None, reset_on_show=None, tab=None
):
def show_publisher_tool(self, parent=None, controller=None, tab=None):
with qt_app_context():
window = self.get_publisher_tool(parent, controller, reset_on_show)
window = self.get_publisher_tool(parent, controller)
if tab:
window.set_current_tab(tab)
window.make_sure_is_visible()