Snaptop - Snap! for Desktop

still unable to quit the program (Linux Mint) and libraries still missing

I forget to fix that, i will fix that in the next release.

The Snap! source code on GitHub uses the file picker to pick libraries, so you'll have to download them then import them.

I think the libraries folder should be in the downloaded folder.
I've found I can close the program by doing a File New before exiting :slight_smile:

That is not the fault of @mrdev88. You must be running your instance of Snap! in a webserver for the libraries to work.

I don't mind loading a library using a file picker but they have not included the libraries folder so there is nothing to pick

I will upload the libraries folder to github

I just uploaded the linux releases, and the libraries for Snaptop 2.0.0

i am on linux and i still cannot close the window. also are the web controls at the top of the window super necessary? it might just be me but I find it distracting

set the menu to null and use this code to allow closing

var s = false;
var a =0
var isS = false;
function loop(){
    requestAnimationFrame(loop)
    var ide = world.childThatIsA(IDE_Morph)
        
        window.onbeforeunload=function(e){
            if (!s&&world.hasUnsavedEdits)
            world.childThatIsA(IDE_Morph).confirm(
                'Quit Snap!?',
                'Unsaved Changes!',
                () => {
                    window.onbeforeunload=null;
                    s=true;
                    window.removeEventListener("beforeunload", world.onbeforeunloadListener);
                    close()
                }
            );
            e.stopImmediatePropagation()
            if (!(s&&world.hasUnsavedEdits))
            e.preventDefault()
            return "Quit Snap!?"
        },true
    
}
loop()

i will try to do that because i all ready tried doing it will electron itself

Can it work with windows? :thinking: