livecode / livecode-ide

LiveCode cross-platform development environment (IDE)
https://livecode.com/
32 stars 70 forks source link

[22655] Ensure upload of a .livecode stack is possible in revOnline #2125

Closed livecodepanos closed 4 years ago

livecodepanos commented 4 years ago

Binary changes:

Updated the mouseUp handler of:

button "Browse" of group "stack upload" of group "chooser" of group "stack" of group "viewing pane" of card "main" of stack "/Users/panos/Desktop/github/livecode/ide/Toolset/palettes/revonline.rev"

from:

on mouseUp
   answer file "select stack to upload" with type "revolution stack|rev|REV"
   if it is not empty then
      local tPath
      put it into tPath
      put tPath into field "stack path" of the owner of me
      --newStack tPath
   end if  
end mouseUp

to:

on mouseUp
   local tResult
   revIDEAnswerFileWithTypes "stack", "select stack to upload"
   put the result into tResult
   if tResult is not empty then
      local tPath
      put tResult into tPath
      put tPath into field "stack path" of the owner of me
   end if  
end mouseUp
montegoulding commented 4 years ago

@livecode-vulcan review ok 3e8fdf0

livecode-vulcan commented 4 years ago

💙 review by @montegoulding ok 3e8fdf04fdac5bde42cb354cd48a7fb863a45a5f