From 0579f59af64bd836e546dd2b187f1159ea3277ce Mon Sep 17 00:00:00 2001 From: gambas Date: Sat, 26 Mar 2022 22:42:57 +0100 Subject: [PATCH] Version control: Correctly hide the 'Locate change' button when there is no change. [DEVELOPMENT ENVIRONMENT] * BUG: Version control: Correctly hide the 'Locate change' button when there is no change. --- app/src/gambas3/.src/VersionControl/FFileInfoVC.class | 2 ++ app/src/gambas3/.src/VersionControl/FFileInfoVC.form | 1 + 2 files changed, 3 insertions(+) diff --git a/app/src/gambas3/.src/VersionControl/FFileInfoVC.class b/app/src/gambas3/.src/VersionControl/FFileInfoVC.class index 3b534a960..0fe3f721d 100644 --- a/app/src/gambas3/.src/VersionControl/FFileInfoVC.class +++ b/app/src/gambas3/.src/VersionControl/FFileInfoVC.class @@ -72,6 +72,7 @@ Private Sub LoadVersionControlInfo() edtChange.Text = sDiff edtChange.Show lblVersioning.Hide + btnLocateChange.Show Else edtChange.Hide If Project.IsLocked($sPath) Then @@ -84,6 +85,7 @@ Private Sub LoadVersionControlInfo() bHideUndoButton = True Endif lblVersioning.Show + btnLocateChange.Hide Endif btnRevert.Visible = Not bHideUndoButton diff --git a/app/src/gambas3/.src/VersionControl/FFileInfoVC.form b/app/src/gambas3/.src/VersionControl/FFileInfoVC.form index 7e2638bd4..7b75be5b4 100644 --- a/app/src/gambas3/.src/VersionControl/FFileInfoVC.form +++ b/app/src/gambas3/.src/VersionControl/FFileInfoVC.form @@ -49,6 +49,7 @@ } { btnLocateChange Button MoveScaled(19,0,21,4) + Visible = False AutoResize = True Text = ("Locate change") Picture = Picture["icon:/small/find"]