Add dont_show checkbox for WebP format

This commit is contained in:
Christian Kaiser 2024-09-20 05:19:26 -03:00 committed by David Capello
parent b40614ca36
commit b10cc60fdb
2 changed files with 2 additions and 0 deletions

View File

@ -48,6 +48,7 @@
</vbox> </vbox>
<separator horizontal="true" /> <separator horizontal="true" />
<hbox> <hbox>
<check text="@general.dont_show" id="dont_show" tooltip="@general.dont_show_tooltip" />
<boxfiller /> <boxfiller />
<hbox homogeneous="true"> <hbox homogeneous="true">
<button text="@general.ok" closewindow="true" id="ok" magnet="true" minwidth="60" /> <button text="@general.ok" closewindow="true" id="ok" magnet="true" minwidth="60" />

View File

@ -432,6 +432,7 @@ FormatOptionsPtr WebPFormat::onAskUserForFormatOptions(FileOp* fop)
pref.webp.imageHint(base::convert_to<int>(win.imageHint()->getValue())); pref.webp.imageHint(base::convert_to<int>(win.imageHint()->getValue()));
pref.webp.quality(win.quality()->getValue()); pref.webp.quality(win.quality()->getValue());
pref.webp.imagePreset(base::convert_to<int>(win.imagePreset()->getValue())); pref.webp.imagePreset(base::convert_to<int>(win.imagePreset()->getValue()));
pref.webp.showAlert(!win.dontShow()->isSelected());
opts->setLoop(pref.webp.loop()); opts->setLoop(pref.webp.loop());
opts->setType(WebPOptions::Type(pref.webp.type())); opts->setType(WebPOptions::Type(pref.webp.type()));