"Save stack" dialog for each stack opened

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
giovannic
Posts: 30
Joined: Fri Apr 17, 2009 7:05 pm

"Save stack" dialog for each stack opened

Post by giovannic » Mon Mar 22, 2010 5:59 pm

Hi. I wanna ask if there is a reason for this.
I have a mainstack with a lot of substack in it.
When I quit Revolution I get the "Save stack" message, and this is normal only for the first time.
But for me it's not normal that I've this message for every substack I've modified.
If I save a mainstack or a substack of it I save the mainstack and ALL its substacks
so why continue to ask to save every modified stack?

This is very annoying in an app with a lot of substack.
I think this is a bug so I ask to solve it before the 4.5 release.

I've this behavior in every platform I use Revolution (Windows, Mac and Linux)

Thank u for all and bye-

Zryip TheSlug
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 163
Joined: Tue Jan 26, 2010 10:15 pm
Contact:

Re: "Save stack" dialog for each stack opened

Post by Zryip TheSlug » Wed Mar 24, 2010 12:45 am

giovannic wrote:Hi. I wanna ask if there is a reason for this.
I have a mainstack with a lot of substack in it.
When I quit Revolution I get the "Save stack" message, and this is normal only for the first time.
But for me it's not normal that I've this message for every substack I've modified.
If I save a mainstack or a substack of it I save the mainstack and ALL its substacks
so why continue to ask to save every modified stack?

This is very annoying in an app with a lot of substack.
I think this is a bug so I ask to solve it before the 4.5 release.

I've this behavior in every platform I use Revolution (Windows, Mac and Linux)

Thank u for all and bye-
Hello,

I have no answer for you excepted you can eventually try to add this handler in your stacks

on closeStack
save this stack
end closeStack


Regards,
Zryip TheSlug
TheSlug
http://www.aslugontheroad.com - Tutorials, demo stacks and plugins for LiveCode
Data Grid Helper - An intuitive interface for building LiveCode's Data Grids
Excel Library- Extends the LiveCode language for controlling MS Excel

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: "Save stack" dialog for each stack opened

Post by Klaus » Wed Mar 31, 2010 10:14 am

Buongiorno Giovanni,

I think this is "just" a bug in the Rev IDE!
It ALWAYS asks to save a stack, even if you did not modify it in any way.

That's why I still use good ol' MetaCard as my main IDE :)

So adding

Code: Select all

on closeStack
   save this stack
end closeStack
to your stack script won't do anything about it 8)


Best

Klaus

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3581
Joined: Mon Jan 22, 2007 7:36 am
Contact:

Re: "Save stack" dialog for each stack opened

Post by mwieder » Wed Mar 31, 2010 5:36 pm

Is this new behavior for 4.5? I don't see this happening in 4.0 (and would be very annoyed if I did...)

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: "Save stack" dialog for each stack opened

Post by Klaus » Wed Mar 31, 2010 6:04 pm

Hi Mark,

no new behavior! This happens to me everytime when I use Rev (at least since version 2.5), which I try to avoid 8)


Best

Klaus

Post Reply