2
import Ubuntu.Components 1.1
3
import Ubuntu.Components.Popups 1.0
8
title: "Unsaved changes"
9
text: "There are unsaved changes. Do you want to save this file before closing?"
12
color: UbuntuColors.green
14
PopupUtils.close(dialogue)
16
saveFile(root.importItems[0],"/home/phablet/.local/share/com.ubuntu.developer.pawstr.edit/")
18
root.importItems = [nullItem]
24
color: UbuntuColors.green
26
PopupUtils.close(dialogue)
27
PopupUtils.open(saveAsDialog)
29
root.importItems = [nullItem]
34
text: "Close without saving"
35
color: UbuntuColors.red
37
PopupUtils.close(dialogue)
39
root.importItems = [nullItem]