mirror of
https://github.com/fergalmoran/picard.git
synced 2026-03-22 21:25:14 +00:00
PICARD-1624: Fix saving options without AUTO_DETECT_DRIVES
Since 995281f saving options without CD auto detection available caused an error.
This commit is contained in:
@@ -70,9 +70,12 @@ class CDLookupOptionsPage(OptionsPage):
|
||||
def save(self):
|
||||
if AUTO_DETECT_DRIVES:
|
||||
config.setting["cd_lookup_device"] = self.ui.cd_lookup_device.currentText()
|
||||
drives = self.drives
|
||||
else:
|
||||
config.setting["cd_lookup_device"] = self.ui.cd_lookup_device.text()
|
||||
self.tagger.window.update_cd_lookup_drives(self.drives)
|
||||
selected_drive = self.ui.cd_lookup_device.text()
|
||||
config.setting["cd_lookup_device"] = selected_drive
|
||||
drives = [selected_drive]
|
||||
self.tagger.window.update_cd_lookup_drives(drives)
|
||||
|
||||
|
||||
register_options_page(CDLookupOptionsPage)
|
||||
|
||||
Reference in New Issue
Block a user