mirror of
https://github.com/aclist/dztui.git
synced 2026-10-30 06:32:53 +01:00
feat: populate ServerTreeViews
This commit is contained in:
1 parent
4a3d407e5f
commit
37dab3e83b
9 files changed
+140
-130
No files matched your search
+2
-3
@@ -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
@@ -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",
|
||||
)
|
||||
Reference in new issue
Block a user