From 4858f1d4049d514cc99792c7ff13518dfe95398c Mon Sep 17 00:00:00 2001 From: Osmium Sorcerer Date: Sun, 22 Mar 2026 17:59:37 +0000 Subject: Move image plugin status to "About" page Remove the error dialog that pops up if an image format is missing. Check AVIF, WebP, and APNG support, and report their status. As it stands, WebP should be supported by Qt itself, and AVIF has yet to be added. The rest (like PNG and JPEG) are on by default. --- src/main.cpp | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index 0bc4e80..4141fc0 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -54,20 +54,6 @@ int main(int argc, char *argv[]) } } - QStringList expected_formats{"webp", "apng", "gif"}; - for (const QByteArray &i_format : QImageReader::supportedImageFormats()) - { - if (expected_formats.contains(i_format, Qt::CaseInsensitive)) - { - expected_formats.removeAll(i_format.toLower()); - } - } - - if (!expected_formats.isEmpty()) - { - call_error("Missing image formats: " + expected_formats.join(", ") + ".

Please make sure you have installed the application properly."); - } - QString p_language = Options::getInstance().language(); if (p_language.trimmed().isEmpty()) { -- cgit