Skip to content

Commit 90b7b86

Browse files
committed
Make the interface for interlace more consistent
1 parent 9b8e444 commit 90b7b86

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/windows/export.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -471,13 +471,13 @@ def cboProfile_index_changed(self, widget, index):
471471

472472
# Load the interlaced options
473473
self.cboInterlaced.clear()
474-
self.cboInterlaced.addItem(_("Yes Top field first"), "Yes")
475474
self.cboInterlaced.addItem(_("No"), "No")
475+
self.cboInterlaced.addItem(_("Yes Top field first"), "Yes")
476476
self.cboInterlaced.addItem(_("Yes Bottom field first"), "Yes")
477477
if profile.info.interlaced_frame:
478-
self.cboInterlaced.setCurrentIndex(0)
479-
else:
480478
self.cboInterlaced.setCurrentIndex(1)
479+
else:
480+
self.cboInterlaced.setCurrentIndex(0)
481481

482482
def cboSimpleTarget_index_changed(self, widget, index):
483483
selected_target = widget.itemData(index)
@@ -808,8 +808,8 @@ def accept(self):
808808
"video_bitrate": int(self.convert_to_bytes(self.txtVideoBitRate.text())),
809809
"start_frame": self.txtStartFrame.value(),
810810
"end_frame": self.txtEndFrame.value(),
811-
"interlace": ((interlacedIndex == 0) or (interlacedIndex == 2)),
812-
"topfirst": interlacedIndex == 0
811+
"interlace": ((interlacedIndex == 1) or (interlacedIndex == 2)),
812+
"topfirst": interlacedIndex == 1
813813
}
814814

815815
audio_settings = {"acodec": self.txtAudioCodec.text(),

0 commit comments

Comments
 (0)