Skip to content

Commit

Permalink
Merge pull request #522 from tokejepsen/activate_window
Browse files Browse the repository at this point in the history
Activate each tool window.
  • Loading branch information
mottosso authored May 19, 2020
2 parents a774f04 + e27470e commit 4ab2bbb
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 0 deletions.
4 changes: 4 additions & 0 deletions avalon/tools/creator/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -594,3 +594,7 @@ def show(debug=False, parent=None):
window.setStyleSheet(style.load_stylesheet())

module.window = window

# Pull window to the front.
module.window.raise_()
module.window.activateWindow()
4 changes: 4 additions & 0 deletions avalon/tools/loader/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,10 @@ def show(debug=False, parent=None, use_context=False):

module.window = window

# Pull window to the front.
module.window.raise_()
module.window.activateWindow()


def cli(args):

Expand Down
4 changes: 4 additions & 0 deletions avalon/tools/projectmanager/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,10 @@ def show(root=None, debug=False, parent=None):

module.window = window

# Pull window to the front.
module.window.raise_()
module.window.activateWindow()


def cli(args):
import argparse
Expand Down
4 changes: 4 additions & 0 deletions avalon/tools/sceneinventory/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -951,3 +951,7 @@ def show(root=None, debug=False, parent=None):
window.refresh()

module.window = window

# Pull window to the front.
module.window.raise_()
module.window.activateWindow()
4 changes: 4 additions & 0 deletions avalon/tools/workfiles/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -907,3 +907,7 @@ def show(root=None, debug=False, parent=None, use_context=True):
window.setStyleSheet(style.load_stylesheet())

module.window = window

# Pull window to the front.
module.window.raise_()
module.window.activateWindow()

0 comments on commit 4ab2bbb

Please sign in to comment.