all repos — mgba @ afbf3f8e34c9bf21ef5daa0b4ba4800b40e0602f

mGBA Game Boy Advance Emulator

Qt: Minor GIF view UX improvement
Vicki Pfau vi@endrift.com
Mon, 10 Feb 2020 18:13:19 -0800
commit

afbf3f8e34c9bf21ef5daa0b4ba4800b40e0602f

parent

fb12372ae3e5b71b9c2fc07657bd2601f842709e

1 files changed, 5 insertions(+), 0 deletions(-)

jump to
M src/platform/qt/GIFView.cppsrc/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); + } } }