Anyway to "force close" a layer?
Anyway to "force close" a layer?
Is there any way to "force delete" a layer without asking the user to save? Would be very helpful if there were.
-
- Posts: 2200
- Joined: August 5th, 2016, 10:27 am
- Location: 拆哪!I repeat, CHINA! (a.k.a. 种花家)
- Contact:
Re: Anyway to "force close" a layer?
How about settings under File-Preferences-Layer?
熠熠种花 - Glimmering Garden
Harvest Moon
2-engine p45 gliderless HWSS gun
Small p2070 glider gun
Forgive me if I withhold my enthusiasm.
Harvest Moon
2-engine p45 gliderless HWSS gun
Small p2070 glider gun
Forgive me if I withhold my enthusiasm.
Re: Anyway to "force close" a layer?
ah thanks. I'm on mobile so question:GUYTU6J wrote:How about settings under File-Preferences-Layer?
Can I edit options with scripts? I'm using python.
Re: Anyway to "force close" a layer?
Not that particular option. g.setoption() generally lets you get at options that can be accessed directly from the menus, but Preferences are supposed to be decisions to be made by the user, and therefore beyond the reach of scripts.Saka wrote:ah thanks. I'm on mobile so question:GUYTU6J wrote:How about settings under File-Preferences-Layer?
Can I edit options with scripts? I'm using python.
In this case, I always uncheck all the check boxes under File > Preferences > Layer, so I never see the problem you're describing. (Instead, if I run scripts that indiscriminately remove layers, or if I click to close them manually, Golly silently throws away my work -- but it seems better to be careful to save my work when I want to save it, than to be annoyed by those incessant popups all the time.)
Re: Anyway to "force close" a layer?
So no. I will just add that to the golly suggestions and add that to the instructions for the script.
EDIT: Turns out I did post the suggestion
EDIT: Turns out I did post the suggestion