mirror of
https://github.com/aclist/dztui.git
synced 2026-11-06 18:10:58 +01:00
chore: drop deprecated controller logic
This commit is contained in:
1 parent
575e591c10
commit
8d1cc4bb68
4 files changed
+27
-296
No files matched your search
@@ -3,6 +3,7 @@ from typing import Literal, TYPE_CHECKING
|
||||
|
||||
from dzgui.const.enum import FilterMode
|
||||
from dzgui.const.constants import EXPAND, NO_EXPAND, NO_FILL, NO_PADDING, SEARCH_ICON
|
||||
from dzgui.model.servers import ServerModelManager
|
||||
from dzgui.util.margins import set_surrounding_margins
|
||||
from dzgui.views.components.labels import BoldLabel
|
||||
|
||||
@@ -119,7 +120,10 @@ class KeywordEntry(Gtk.Entry):
|
||||
|
||||
logger.info(f"User filtered by keyword '{keyword}'")
|
||||
self.emitter.emit("keyword_set", keyword)
|
||||
self.controller.refilter_model(FilterMode.KEYWORD, keyword)
|
||||
|
||||
ServerModelManager(
|
||||
self.controller, self.controller.get_active_treeview()
|
||||
).refilter(FilterMode.KEYWORD, keyword)
|
||||
|
||||
|
||||
class FilterPanel(Gtk.Box):
|
||||
|
||||
Reference in new issue
Block a user