chore: consolidate is_in_favs() methods

This commit is contained in:
aclist committed 2026-05-01 21:46:13 +09:00
1 parent eb4ee41742
commit 29aeb550b3
3 files changed
+6 -11

No files matched your search

+1 -2
View File
@@ -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