make it possible to disable highlighters
This commit is contained in:
@@ -26,7 +26,12 @@ class LogFileModel:
|
||||
self._file = os.path.realpath(file)
|
||||
|
||||
def highlighters(self):
|
||||
return Highlighting.read_config(self.settings)
|
||||
all_highlighters = Highlighting.read_config(self.settings)
|
||||
active_highlighters = []
|
||||
for h in all_highlighters:
|
||||
if h.is_active():
|
||||
active_highlighters.append(h)
|
||||
return active_highlighters
|
||||
|
||||
def get_file(self):
|
||||
return self._file
|
||||
|
||||
Reference in New Issue
Block a user