hide the video driver selection in qt6

This commit is contained in:
Damien Elmes 2021-10-07 17:51:00 +10:00
parent e2c8dc92c1
commit 2e9b4b3454

View File

@ -307,6 +307,7 @@ for you than the default driver, please let us know on the Anki forums."""
self.form.video_driver.setCurrentIndex(
self.video_drivers.index(self.mw.pm.video_driver())
)
self.form.video_driver.setVisible(qtmajor == 5)
def update_video_driver(self) -> None:
new_driver = self.video_drivers[self.form.video_driver.currentIndex()]