mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-18 17:19:50 +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:
parent
987366fa8f
commit
ab6c54ecb1
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue