shutter-project / shutter

Screenshot tool for Linux
https://shutter-project.org/
GNU General Public License v3.0
538 stars 35 forks source link

Refactor parts of Save.pm #692

Closed Photon89 closed 3 months ago

Photon89 commented 3 months ago

I can't find the mistake here. I'm getting:

Trying to save file to /home/photon/Bilder/Selection_001.avif
*** unhandled exception in callback:
***   Can't use string ("avif") as a HASH ref while "strict refs" in use at /home/photon/github/shutter/share/shutter/resources/modules/Shutter/Pixbuf/Save.pm line 68.
***     Shutter::Pixbuf::Save::set_quality_setting("avif") called at /home/photon/github/shutter/share/shutter/resources/modules/Shutter/Pixbuf/Save.pm line 152
***     Shutter::Pixbuf::Save::save_pixbuf_to_file(Shutter::Pixbuf::Save=HASH(0x648aee8e9598), Gtk3::Gdk::Pixbuf=HASH(0x648aefa133a0), "/home/photon/Bilder/Selection_001.avif", "avif", 100) called at ./bin/shutter line 6453
***     Shutter::App::fct_take_screenshot(Gtk3::ToolButton=HASH(0x648aef4cf148), "select", undef, undef) called at ./bin/shutter line 3046
***     Shutter::App::__ANON__() called at /usr/lib/perl5/5.38/vendor_perl/Glib/Object/Introspection.pm line 67
***     eval {...} called at /usr/lib/perl5/5.38/vendor_perl/Glib/Object/Introspection.pm line 67
***     Glib::Object::Introspection::__ANON__(Shutter::App=HASH(0x648aee8d9618)) called at ./bin/shutter line 10986
***  ignoring at /usr/lib/perl5/5.38/vendor_perl/Glib/Object/Introspection.pm line 67.
 at ./bin/shutter line 10986.

Any ideas?