Removed global documentCreated

This commit is contained in:
unsettledgames
2021-07-23 19:05:33 +02:00
parent 404b1c56c1
commit da7ae65ead
8 changed files with 17 additions and 16 deletions

View File

@ -36,7 +36,7 @@ const FileManager = (() => {
}
function exportProject() {
if (documentCreated) {
if (Startup.documentCreated()) {
//create name
var selectedPalette = Util.getText('palette-button');
if (selectedPalette != 'Choose a palette...'){
@ -93,7 +93,7 @@ const FileManager = (() => {
function open() {
//if a document exists
if (documentCreated) {
if (Startup.documentCreated()) {
//check if the user wants to overwrite
if (confirm('Opening a pixel will discard your current one. Are you sure you want to do that?'))
//open file selection dialog