mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
GUI: txt output, default to system new line type if one is selected.
This commit is contained in:
parent
3a87f0d065
commit
60cbc6a2cb
@ -30,5 +30,5 @@ class PluginWidget(Widget, Ui_Form):
|
||||
self.opt_newline.setModel(self.newline_model)
|
||||
|
||||
default_index = self.opt_newline.findText(default)
|
||||
self.opt_newline.setCurrentIndex(default_index if default_index != -1 else 0)
|
||||
|
||||
system_index = self.opt_newline.findText('system')
|
||||
self.opt_newline.setCurrentIndex(default_index if default_index != -1 else system_index if system_index != -1 else 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user