savedocumentasΒΆ

boolean success savedocumentas ( string file , boolean warn , boolean dontaddtorecent )

Save the current document

Arguments:

  • file The gproject file to save (or nil to open a file dialog)
  • warn If true, warn the user when overwriting an existing project file
  • dontaddtorecent If true, the file won't be added to the recent files

Return:

  • success true if the file was save (false when an error occured or the user canceled)