Skip to content

Commit 2afd899

Browse files
Tobias Pietzschj6t
authored andcommitted
gitk: check main window visibility before waiting for it to show
If the main window is already visible when gitk waits for it to become visible, gitk hangs forever. This commit adds a check whether the window is already visible. See https://wiki.tcl-lang.org/page/tkwait+visibility Signed-off-by: Tobias Pietzsch <[email protected]> Signed-off-by: Johannes Sixt <[email protected]>
1 parent c18400c commit 2afd899

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gitk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12687,7 +12687,7 @@ catch {
1268712687
wm iconphoto . -default gitlogo gitlogo32
1268812688
}
1268912689
# wait for the window to become visible
12690-
tkwait visibility .
12690+
if {![winfo viewable .]} {tkwait visibility .}
1269112691
set_window_title
1269212692
update
1269312693
readrefs

0 commit comments

Comments
 (0)