mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-03 05:29:12 +00:00
Show current config on config screen. Load default config if config unset
- Track current (saved/loaded) config separate from the new config (to be written) when user clicks Start - Fallback to using default config when no config for the specific content type or processor is specified in khoj.yml - Earlier were only loading default config on first run, not after - Create Child CheckBox, LineEdit classes for Processor Widgets - Create ProcessorType, similar to SearchType - Track ProcessorType the widgets are associated with - Simplify update, save, load of config based on type
This commit is contained in:
@@ -63,7 +63,7 @@ class FileBrowser(QtWidgets.QWidget):
|
||||
|
||||
def setFiles(self, paths):
|
||||
self.filepaths = paths
|
||||
if len(self.filepaths) == 0:
|
||||
if not self.filepaths or len(self.filepaths) == 0:
|
||||
return
|
||||
elif len(self.filepaths) == 1:
|
||||
self.lineEdit.setText(self.filepaths[0])
|
||||
|
||||
Reference in New Issue
Block a user