mirror of https://github.com/mgba-emu/mgba.git
Qt: Minor GIF view UX improvement
This commit is contained in:
parent
fb12372ae3
commit
afbf3f8e34
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue