Toggled autosave on by default, and open last project off by default

This commit is contained in:
OverloadedOrama 2020-05-11 16:15:59 +03:00
parent 5424472c95
commit 62a695366a
4 changed files with 3 additions and 9 deletions

View file

@ -168,7 +168,6 @@ func _ready() -> void:
$QuitAndSaveDialog.add_button("Save & Exit", false, "Save")
$QuitAndSaveDialog.get_ok().text = "Exit without saving"
if not Global.config_cache.has_section_key("preferences", "startup"):
Global.config_cache.set_value("preferences", "startup", true)
@ -180,11 +179,6 @@ func _ready() -> void:
else:
Global.can_draw = true
if not Global.config_cache.has_section_key("preferences", "open_last_project"):
Global.config_cache.set_value("preferences", "open_last_project", true)
if Global.config_cache.get_value("preferences", "open_last_project"):
Global.open_last_project = Global.config_cache.get_value("preferences", "open_last_project")
# If backup file exists then Pixelorama was not closed properly (probably crashed) - reopen backup
$BackupConfirmation.get_cancel().text = tr("Delete")
if Global.config_cache.has_section("backups"):