You could try it a different way. Save/keep the login stack as toplevel all the time, then in the handler that opens the login stack:

if the environment is not "development" then modal "login"
else go stack "login"


On 1/25/18 10:48 AM, Bob Sneidar via use-livecode wrote:
I did. I moved them to the card script. Issue persists. And it doesn't explain 
why it's opening modally, which can only happen if my openStack handler in the 
card script of the MAINSTACK is executing. IMHO the standalone builder should 
not be executing any scripts, unless by doing so it finds all the dependencies, 
but if that is the case, that is a helluva way to go about it.

The MainStack does not have preOpenStack or openStack handlers in it's stack 
script.

Bob S

On Jan 25, 2018, at 08:38 , Mark Wieder via use-livecode 
<use-livecode@lists.runrev.com> wrote:

Thanks Mark.
I have a mainstack called Forms Generator. In the openStack handler in the card 
script of that stack, I open modally another substack called Login. This is so 
that no one can access the app without logging in first.
When I Save As Standalone, this Login stack opens (why I do not know, I assume the 
Standalone Builder is "walking" through the scripts) and when it does, the 
Standalone Builder stops dead in it's tracks waiting for the Login (opened modally if you 
recall) is dismissed.

Ah! This sounds familiar.
Do you have an openStack or preOpenStack handler in your login stack script? 
Those should go into the script of the first card instead.
It sounds like your login stack is receiving an initialization message from the 
Standalone Builder.

--
Mark Wieder
ahsoftw...@gmail.com


_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode



--
Jacqueline Landman Gay         |     jac...@hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com

_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to