Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 351d38c

Browse files
Merge pull request #1883 from MartinKoob/patch-1
bug # 20868 -- enable/disable button "replace" based on search location
2 parents 066e261 + c3adc0c commit 351d38c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Toolset/palettes/script editor/behaviors/revsefindmaincardbehavior.livecodescript

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@ command updateButtonStates
118118
enable button "Replace one" of me
119119
enable button "Find all" of me
120120
enable button "Replace all" of me
121+
enable button "Replace" of me
122+
select item 1 of button "replace"
121123
else
122124
enable button "Find all" of me
123125

@@ -127,6 +129,8 @@ command updateButtonStates
127129

128130
disable button "Find Next" of me
129131
disable button "Replace one" of me
132+
disable button "Replace" of me
133+
set the label of button "replace" of me to empty
130134
end if
131135
end updateButtonStates
132136

0 commit comments

Comments
 (0)