mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-12-14 11:14:43 -05:00
Add WarningDialog for unsaved Image before creating a new Image
This commit is contained in:
parent
53338e4310
commit
dee0d0696d
2 changed files with 15 additions and 1 deletions
|
|
@ -1163,6 +1163,12 @@ visible = false
|
|||
|
||||
[node name="AboutDialog" parent="." instance=ExtResource( 34 )]
|
||||
|
||||
[node name="UnsavedCanvasDialog" type="ConfirmationDialog" parent="."]
|
||||
margin_right = 200.0
|
||||
margin_bottom = 70.0
|
||||
window_title = "Unsaved Image"
|
||||
dialog_text = "Are you sure want to proceed?"
|
||||
|
||||
[node name="QuitDialog" type="ConfirmationDialog" parent="."]
|
||||
margin_right = 200.0
|
||||
margin_bottom = 70.0
|
||||
|
|
@ -1252,6 +1258,8 @@ visible = false
|
|||
[connection signal="popup_hide" from="PreferencesDialog" to="." method="_can_draw_true"]
|
||||
[connection signal="popup_hide" from="OutlineDialog" to="." method="_can_draw_true"]
|
||||
[connection signal="popup_hide" from="AboutDialog" to="." method="_can_draw_true"]
|
||||
[connection signal="confirmed" from="UnsavedCanvasDialog" to="." method="_on_UnsavedCanvasDialog_confirmed"]
|
||||
[connection signal="popup_hide" from="UnsavedCanvasDialog" to="." method="_can_draw_true"]
|
||||
[connection signal="confirmed" from="QuitDialog" to="." method="_on_QuitDialog_confirmed"]
|
||||
[connection signal="popup_hide" from="QuitDialog" to="." method="_can_draw_true"]
|
||||
[connection signal="confirmed" from="QuitAndSaveDialog" to="." method="_on_QuitDialog_confirmed"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue