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 <mlevedahl@gmail.com>

Mark Levedahl committed Feb 18, 2024 at 13:06 UTC 13df401e3ecd0673eee70bd4d5e0247edf29db0f
1 file changed +5 -7
git-gui.sh
+5 -7
@@ -916,13 +916,11 @@ proc apply_config {} {
916 set use_ttk 0
917 set NS {}
918 if {$repo_config(gui.usettk)} {
919 - set use_ttk [package vsatisfies [package provide Tk] 8.5]
920 - if {$use_ttk} {
921 - set NS ttk
922 - bind [winfo class .] <<ThemeChanged>> [list InitTheme]
923 - pave_toplevel .
924 - color::sync_with_theme
925 - }
919 + set use_ttk 1
920 + set NS ttk
921 + bind [winfo class .] <<ThemeChanged>> [list InitTheme]
922 + pave_toplevel .
923 + color::sync_with_theme
924 }
925
926 global comment_string