mirror of
https://github.com/aclist/dztui.git
synced 2026-10-31 15:12:48 +01:00
chore: consolidate is_in_favs() methods
This commit is contained in:
1 parent
eb4ee41742
commit
29aeb550b3
3 files changed
+6
-11
No files matched your search
@@ -271,8 +271,7 @@ class ServerTreeView(ContextMixin, TreeView):
|
||||
|
||||
def is_in_favs(self) -> bool:
|
||||
record = self.get_record_string()
|
||||
ips = self.controller.get_config_man().lookup(Preferences.IP_LIST)
|
||||
if record in ips:
|
||||
if self.controller.get_config_man().is_in_favs(record):
|
||||
return True
|
||||
return False
|
||||
|
||||
|
||||
Reference in new issue
Block a user