File tree 1 file changed +3
-16
lines changed
castervoice/lib/merge/ccrmerging2/hooks/standard_hooks
1 file changed +3
-16
lines changed Original file line number Diff line number Diff line change 1
- from castervoice .lib import settings , textformat
1
+ from castervoice .lib import settings , textformat , utilities
2
2
from castervoice .lib .merge .ccrmerging2 .hooks .base_hook import BaseHook
3
3
from castervoice .lib .merge .ccrmerging2 .hooks .events .event_types import EventType
4
4
from castervoice .lib import printer
8
8
from dragonfly .windows .window import Window
9
9
10
10
def show_window ():
11
- title = None
12
- engine = get_current_engine ().name
13
- if engine == 'natlink' :
14
- import natlinkstatus # pylint: disable=import-error
15
- status = natlinkstatus .NatlinkStatus ()
16
- if status .NatlinkIsEnabled () == 1 :
17
- if six .PY2 :
18
- title = "Messages from Python Macros"
19
- else :
20
- title = "Messages from Natlink"
21
- else :
22
- title = "Caster: Status Window"
23
- if engine != 'natlink' :
24
- title = "Caster: Status Window"
25
- windows = Window .get_matching_windows (title = title )
11
+ window_title = utilities .get_caster_messaging_window ()
12
+ windows = Window .get_matching_windows (title = window_title )
26
13
if windows :
27
14
windows [0 ].set_foreground ()
28
15
You can’t perform that action at this time.
0 commit comments