Qt: Minor GIF view UX improvement
Vicki Pfau vi@endrift.com
Mon, 10 Feb 2020 18:13:19 -0800
1 files changed,
5 insertions(+),
0 deletions(-)
jump to
M
src/platform/qt/GIFView.cpp
→
src/platform/qt/GIFView.cpp
@@ -84,6 +84,11 @@ void GIFView::setFilename(const QString& filename) {
m_filename = filename; if (!FFmpegEncoderIsOpen(&m_encoder)) { m_ui.start->setEnabled(!filename.isEmpty()); + if (filename.endsWith(".gif")) { + m_ui.fmtGif->setChecked(Qt::Checked); + } else if (filename.endsWith(".png") || filename.endsWith(".apng")) { + m_ui.fmtApng->setChecked(Qt::Checked); + } } }