mirror of
https://github.com/aclist/dztui.git
synced 2026-10-25 12:12:31 +01:00
feat: self_update flag
This commit is contained in:
1 parent
936dfe8d02
commit
fe40a5e54f
3 files changed
+20
-9
No files matched your search
@@ -1,5 +1,9 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## [6.0.0-beta.8] 2025-09-23
|
||||||
|
## Added
|
||||||
|
- Flag to disable branch toggle for distro-packaged releases
|
||||||
|
|
||||||
## [6.0.0-beta.7] 2025-09-20
|
## [6.0.0-beta.7] 2025-09-20
|
||||||
## Added
|
## Added
|
||||||
- Users can save text notes to describe servers
|
- Users can save text notes to describe servers
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
|
||||||
version=6.0.0.beta-7
|
version=6.0.0.beta-8
|
||||||
|
|
||||||
#CONSTANTS
|
#CONSTANTS
|
||||||
aid=221100
|
aid=221100
|
||||||
@@ -585,10 +585,10 @@ fetch_helpers_by_sum(){
|
|||||||
[[ -f "$config_file" ]] && source "$config_file"
|
[[ -f "$config_file" ]] && source "$config_file"
|
||||||
declare -A sums
|
declare -A sums
|
||||||
sums=(
|
sums=(
|
||||||
["funcs"]="c27a81577c818b4f4d786ada52ad5042"
|
["funcs"]="65134f86b7c9e14173e05d8e3ebea101"
|
||||||
["query_v2.py"]="55d339ba02512ac69de288eb3be41067"
|
["query_v2.py"]="55d339ba02512ac69de288eb3be41067"
|
||||||
["servers.py"]="7f83d5c1ca54acb12f1bd6657feb2ecf"
|
["servers.py"]="7f83d5c1ca54acb12f1bd6657feb2ecf"
|
||||||
["ui.py"]="8d6e52b3e9032acbb84ba6cf137f455a"
|
["ui.py"]="aac7ef0f75876da82fba8be2740e22b9"
|
||||||
["vdf2json.py"]="2f49f6f5d3af919bebaab2e9c220f397"
|
["vdf2json.py"]="2f49f6f5d3af919bebaab2e9c220f397"
|
||||||
["pefile.py"]="21531f2c0d9dfa5f110cf6779f9d22c0"
|
["pefile.py"]="21531f2c0d9dfa5f110cf6779f9d22c0"
|
||||||
)
|
)
|
||||||
|
|||||||
+13
-6
@@ -3758,7 +3758,7 @@ class LeftLabel(Gtk.Label):
|
|||||||
|
|
||||||
|
|
||||||
class Options(Gtk.Box):
|
class Options(Gtk.Box):
|
||||||
def __init__(self):
|
def __init__(self, self_update=True):
|
||||||
super().__init__(
|
super().__init__(
|
||||||
orientation=Gtk.Orientation.VERTICAL,
|
orientation=Gtk.Orientation.VERTICAL,
|
||||||
margin_start=10,
|
margin_start=10,
|
||||||
@@ -3835,11 +3835,18 @@ class Options(Gtk.Box):
|
|||||||
self.branch_combo.append_text("Testing")
|
self.branch_combo.append_text("Testing")
|
||||||
self.branch_combo.set_active(0)
|
self.branch_combo.set_active(0)
|
||||||
self.branch_combo.connect("changed", self._on_branch_changed)
|
self.branch_combo.connect("changed", self._on_branch_changed)
|
||||||
|
self.branch_combo.set_sensitive(self_update)
|
||||||
|
|
||||||
msg = (
|
if self_update is True:
|
||||||
"Stable: only contains stable features. "
|
msg = (
|
||||||
"Testing: pre-release beta, contains new features."
|
"Stable: only contains stable features. "
|
||||||
)
|
"Testing: pre-release beta, contains new features."
|
||||||
|
)
|
||||||
|
else:
|
||||||
|
msg = (
|
||||||
|
"In-app updates are disabled when installing "
|
||||||
|
"DZGUI via the system package manager."
|
||||||
|
)
|
||||||
eb = InfoEventBox(msg)
|
eb = InfoEventBox(msg)
|
||||||
|
|
||||||
version_rows = [
|
version_rows = [
|
||||||
@@ -4355,7 +4362,7 @@ class Notebook(Gtk.Notebook):
|
|||||||
self.keys.show_all()
|
self.keys.show_all()
|
||||||
self.append_page(self.keys)
|
self.append_page(self.keys)
|
||||||
|
|
||||||
self.settings = Options()
|
self.settings = Options(self_update=True)
|
||||||
self.settings.type = RowType.OPTIONS
|
self.settings.type = RowType.OPTIONS
|
||||||
self.settings.show_all()
|
self.settings.show_all()
|
||||||
self.append_page(self.settings)
|
self.append_page(self.settings)
|
||||||
|
|||||||
Reference in new issue
Block a user