Skip to content

Commit 3d8a8d8

Browse files
committed
git-gui: update in-memory config when changing config options
When the user updates any config variable from the options menu, the new config gets saved, but the in-memory state of the config variables is not updated. This results in the old settings being used until the user either opens the options menu again (which triggers a call to load_config), or re-starts git-gui. This change fixes that problem by re-loading the config variables when the Save button is pressed in the options menu. Signed-off-by: Pratyush Yadav <me@yadavpratyush.com>
1 parent 5ab7227 commit 3d8a8d8

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lib/option.tcl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,7 @@ proc do_save_config {w} {
344344
if {[catch {save_config} err]} {
345345
error_popup [strcat [mc "Failed to completely save options:"] "\n\n$err"]
346346
}
347+
load_config 1
347348
reshow_diff
348349
destroy $w
349350
}

0 commit comments

Comments
 (0)