From 13df401e3ecd0673eee70bd4d5e0247edf29db0f Mon Sep 17 00:00:00 2001 From: Mark Levedahl Date: Sun, 18 Feb 2024 13:06:05 -0500 Subject: git-gui: remove redundant check for Tk >= 8.5 Since commit c80d7be5e1e0d, git-gui checks for the availability of ttk before enabling its use, but this check is redundant as Tk >= 8.6 is required. Remove the redundant check. Signed-off-by: Mark Levedahl --- git-gui.sh | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'git-gui.sh') diff --git a/git-gui.sh b/git-gui.sh index 2b5d84a56e..d395634caf 100755 --- a/git-gui.sh +++ b/git-gui.sh @@ -916,13 +916,11 @@ proc apply_config {} { set use_ttk 0 set NS {} if {$repo_config(gui.usettk)} { - set use_ttk [package vsatisfies [package provide Tk] 8.5] - if {$use_ttk} { - set NS ttk - bind [winfo class .] <> [list InitTheme] - pave_toplevel . - color::sync_with_theme - } + set use_ttk 1 + set NS ttk + bind [winfo class .] <> [list InitTheme] + pave_toplevel . + color::sync_with_theme } global comment_string -- cgit v1.2.3