feat: enhance settings dialog and update check logging
This commit is contained in:
+14
-5
@@ -487,12 +487,21 @@ class SettingsDialog:
|
||||
def _build_tab_updates(self, nb):
|
||||
f = self._tab_frame(nb, "Updates")
|
||||
|
||||
tk.Label(f, text="Auto-Update Source", anchor="w").grid(
|
||||
# Current version display
|
||||
tk.Label(f, text="Current Version", anchor="w").grid(
|
||||
row=0, column=0, sticky="w", padx=(8, 4), pady=(8, 2)
|
||||
)
|
||||
tk.Label(
|
||||
f, text="v{}".format(watcher.VERSION), anchor="w",
|
||||
font=("TkDefaultFont", 9, "bold"),
|
||||
).grid(row=0, column=1, sticky="w", padx=(0, 8), pady=(8, 2))
|
||||
|
||||
tk.Label(f, text="Auto-Update Source", anchor="w").grid(
|
||||
row=1, column=0, sticky="w", padx=(8, 4), pady=(8, 2)
|
||||
)
|
||||
|
||||
radio_frame = tk.Frame(f)
|
||||
radio_frame.grid(row=0, column=1, sticky="w", padx=(0, 8), pady=(8, 2))
|
||||
radio_frame.grid(row=1, column=1, sticky="w", padx=(0, 8), pady=(8, 2))
|
||||
|
||||
ttk.Radiobutton(
|
||||
radio_frame, text="Gitea (default)",
|
||||
@@ -513,10 +522,10 @@ class SettingsDialog:
|
||||
).grid(row=0, column=2, sticky="w")
|
||||
|
||||
tk.Label(f, text="Update Server URL", anchor="w").grid(
|
||||
row=1, column=0, sticky="w", padx=(8, 4), pady=4
|
||||
row=2, column=0, sticky="w", padx=(8, 4), pady=4
|
||||
)
|
||||
self._update_url_entry = ttk.Entry(f, textvariable=self.var_update_url, width=42)
|
||||
self._update_url_entry.grid(row=1, column=1, sticky="ew", padx=(0, 8), pady=4)
|
||||
self._update_url_entry.grid(row=2, column=1, sticky="ew", padx=(0, 8), pady=4)
|
||||
|
||||
tk.Label(
|
||||
f,
|
||||
@@ -528,7 +537,7 @@ class SettingsDialog:
|
||||
"still works when disabled."
|
||||
),
|
||||
justify="left", fg="#555555", wraplength=380,
|
||||
).grid(row=2, column=0, columnspan=2, sticky="w", padx=(8, 8), pady=(4, 8))
|
||||
).grid(row=3, column=0, columnspan=2, sticky="w", padx=(8, 8), pady=(4, 8))
|
||||
|
||||
self._on_update_source_change()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user