Skip to content

Commit 4ab2bbb

Browse files
authored
Merge pull request #522 from tokejepsen/activate_window
Activate each tool window.
2 parents a774f04 + e27470e commit 4ab2bbb

File tree

5 files changed

+20
-0
lines changed

5 files changed

+20
-0
lines changed

avalon/tools/creator/app.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -594,3 +594,7 @@ def show(debug=False, parent=None):
594594
window.setStyleSheet(style.load_stylesheet())
595595

596596
module.window = window
597+
598+
# Pull window to the front.
599+
module.window.raise_()
600+
module.window.activateWindow()

avalon/tools/loader/app.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,10 @@ def show(debug=False, parent=None, use_context=False):
431431

432432
module.window = window
433433

434+
# Pull window to the front.
435+
module.window.raise_()
436+
module.window.activateWindow()
437+
434438

435439
def cli(args):
436440

avalon/tools/projectmanager/app.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,10 @@ def show(root=None, debug=False, parent=None):
249249

250250
module.window = window
251251

252+
# Pull window to the front.
253+
module.window.raise_()
254+
module.window.activateWindow()
255+
252256

253257
def cli(args):
254258
import argparse

avalon/tools/sceneinventory/app.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -951,3 +951,7 @@ def show(root=None, debug=False, parent=None):
951951
window.refresh()
952952

953953
module.window = window
954+
955+
# Pull window to the front.
956+
module.window.raise_()
957+
module.window.activateWindow()

avalon/tools/workfiles/app.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -907,3 +907,7 @@ def show(root=None, debug=False, parent=None, use_context=True):
907907
window.setStyleSheet(style.load_stylesheet())
908908

909909
module.window = window
910+
911+
# Pull window to the front.
912+
module.window.raise_()
913+
module.window.activateWindow()

0 commit comments

Comments
 (0)