1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-18 09:09:47 +00:00

If a palette fails to save, show an error popup with an error code and message

Instead of just a notification, which can easily be missed and it doesn't explain the cause of the error
This commit is contained in:
Emmanouil Papadeas 2024-08-28 17:40:48 +03:00
parent 987366fa8f
commit ab6c54ecb1

View file

@ -69,7 +69,7 @@ func save_palette(palette: Palette = current_palette) -> void:
palette.path = save_path palette.path = save_path
var err := palette.save_to_file() var err := palette.save_to_file()
if err != OK: if err != OK:
Global.notification_label("Failed to save palette") Global.popup_error("Failed to save palette. Error code %s (%s)" % [err, error_string(err)])
func copy_palette() -> void: func copy_palette() -> void: