mirror of
https://github.com/aclist/dztui.git
synced 2026-11-07 10:30:40 +01:00
chore: store filter levels as constant
This commit is contained in:
1 parent
0aafe44b4e
commit
7139686d9b
3 files changed
+12
-14
No files matched your search
@@ -2,7 +2,7 @@ import logging
|
||||
|
||||
from typing import Any, TYPE_CHECKING
|
||||
|
||||
from dzgui.const.constants import APP_NAME
|
||||
from dzgui.const.constants import APP_NAME, LOG_FILTERS
|
||||
from dzgui.const.enum import ContextMenuGroup
|
||||
from dzgui.model.model_factory import ModelFactory
|
||||
from dzgui.util import strings
|
||||
@@ -35,9 +35,7 @@ class LogTreeView(ContextMixin, TreeView):
|
||||
|
||||
self.set_model(None)
|
||||
|
||||
# TODO: strings
|
||||
# NOTE: default filters that should be shown on startup
|
||||
self.filters = ["CRITICAL", "WARNING"]
|
||||
self.filters = list(LOG_FILTERS)
|
||||
for i, column_title in enumerate(strings.log_cols):
|
||||
renderer = Gtk.CellRendererText()
|
||||
column = Gtk.TreeViewColumn(column_title, renderer, text=i)
|
||||
|
||||
Reference in new issue
Block a user