feat: populate ServerTreeViews

This commit is contained in:
aclist committed 2025-12-21 20:40:29 +09:00
1 parent 4a3d407e5f
commit 37dab3e83b
9 files changed
+140 -130

No files matched your search

+2 -3
View File
@@ -19,8 +19,7 @@ def is_navkey(key: int) -> bool:
return False
def is_ctrl_mask(event: Gdk.EventKey) -> bool:
if event.keyval is Gdk.KEY_l \
and event.state is Gdk.ModifierType.CONTROL_MASK:
return True
if event.state is Gdk.ModifierType.CONTROL_MASK:
return True
else:
return False
+16 -1
View File
@@ -53,8 +53,9 @@ copy_name = "Copy name to clipboard"
copy_ip = "Copy IP to clipboard"
copy_log = "Copy record(s) to clipboard"
add = "Add to my servers"
remove = "Remove from my servers"
remove = "Remove from Saved Servers"
remove_history = "Remove from history"
connect = "Connect"
# Columns
server_mod_cols = ["Mod", "ID", "Installed"]
@@ -496,3 +497,17 @@ developers = DevelopersPage(
prefs_label="Boot preferences",
columns=["Key", "Value"]
)
@dataclass(slots=True, frozen=True)
class ServerLabels:
browser: str
saved: str
recent: str
lan: str
server_labels = ServerLabels(
browser="Server Browser",
saved="Saved Servers",
recent="Recent",
lan="LAN",
)