mirror of
https://github.com/aclist/dztui.git
synced 2025-01-01 15:12:05 +01:00
fix: set debug state on boot
This commit is contained in:
parent
ecedc4e147
commit
7d66ffe418
3 changed files with 10 additions and 7 deletions
6
dzgui.sh
6
dzgui.sh
|
@ -1,7 +1,7 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
|
||||||
version=5.0.0.rc-25
|
version=5.0.0.rc-27
|
||||||
|
|
||||||
#CONSTANTS
|
#CONSTANTS
|
||||||
aid=221100
|
aid=221100
|
||||||
|
@ -536,10 +536,10 @@ fetch_dzq(){
|
||||||
fetch_helpers_by_sum(){
|
fetch_helpers_by_sum(){
|
||||||
declare -A sums
|
declare -A sums
|
||||||
sums=(
|
sums=(
|
||||||
["ui.py"]="4dc76532cd01c221755e59e803456b57"
|
["ui.py"]="ce3940391b9c7e80eb7af190e40fae41"
|
||||||
["query_v2.py"]="1822bd1769ce7d7cb0d686a60f9fa197"
|
["query_v2.py"]="1822bd1769ce7d7cb0d686a60f9fa197"
|
||||||
["vdf2json.py"]="2f49f6f5d3af919bebaab2e9c220f397"
|
["vdf2json.py"]="2f49f6f5d3af919bebaab2e9c220f397"
|
||||||
["funcs"]="a41432675455a4983c7ba6d2e6681f05"
|
["funcs"]="ded1276c0555577cc03cc36e9381a373"
|
||||||
)
|
)
|
||||||
local author="aclist"
|
local author="aclist"
|
||||||
local repo="dztui"
|
local repo="dztui"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
version=5.0.0.rc-26
|
version=5.0.0.rc-27
|
||||||
|
|
||||||
#CONSTANTS
|
#CONSTANTS
|
||||||
aid=221100
|
aid=221100
|
||||||
|
@ -362,7 +362,7 @@ get_unique_maps(){
|
||||||
< "$filter_file" awk -F$separator '{print $2}' | sort -u
|
< "$filter_file" awk -F$separator '{print $2}' | sort -u
|
||||||
}
|
}
|
||||||
query_config(){
|
query_config(){
|
||||||
local key="$1"
|
[[ -n $2 ]] && local key=$2
|
||||||
keys=(
|
keys=(
|
||||||
"branch"
|
"branch"
|
||||||
"debug"
|
"debug"
|
||||||
|
@ -1026,6 +1026,7 @@ try_connect(){
|
||||||
update_history "$record"
|
update_history "$record"
|
||||||
|
|
||||||
if [[ -n $auto_install ]]; then
|
if [[ -n $auto_install ]]; then
|
||||||
|
logger INFO "Merging modlists"
|
||||||
diff=$(merge_modlists "$diff")
|
diff=$(merge_modlists "$diff")
|
||||||
fi
|
fi
|
||||||
if [[ -n $diff ]]; then
|
if [[ -n $diff ]]; then
|
||||||
|
@ -1167,7 +1168,7 @@ check_timestamps(){
|
||||||
declare -A local_version
|
declare -A local_version
|
||||||
|
|
||||||
for((i = 0; i < ${remote_ids[@]}; ++i)); do
|
for((i = 0; i < ${remote_ids[@]}; ++i)); do
|
||||||
remote_version[$remote_ids[$i]]=${remote_times[$i]}
|
remote_version[${remote_ids[$i]}]=${remote_times[$i]}
|
||||||
done
|
done
|
||||||
|
|
||||||
needs_update=()
|
needs_update=()
|
||||||
|
|
|
@ -15,7 +15,7 @@ locale.setlocale(locale.LC_ALL, '')
|
||||||
gi.require_version("Gtk", "3.0")
|
gi.require_version("Gtk", "3.0")
|
||||||
from gi.repository import Gtk, GLib, Gdk, GObject, Pango
|
from gi.repository import Gtk, GLib, Gdk, GObject, Pango
|
||||||
|
|
||||||
# 5.0.0-rc.26
|
# 5.0.0-rc.27
|
||||||
app_name = "DZGUI"
|
app_name = "DZGUI"
|
||||||
|
|
||||||
cache = {}
|
cache = {}
|
||||||
|
@ -1526,6 +1526,8 @@ class FilterPanel(Gtk.Box):
|
||||||
self.maps_combo.connect("key-press-event", self._on_esc_pressed)
|
self.maps_combo.connect("key-press-event", self._on_esc_pressed)
|
||||||
|
|
||||||
self.debug_toggle = Gtk.ToggleButton(label="Debug mode")
|
self.debug_toggle = Gtk.ToggleButton(label="Debug mode")
|
||||||
|
if query_config(None, "debug")[0] == '1':
|
||||||
|
self.debug_toggle.set_active(True)
|
||||||
self.debug_toggle.connect("toggled", self._on_button_toggled, "Toggle debug mode")
|
self.debug_toggle.connect("toggled", self._on_button_toggled, "Toggle debug mode")
|
||||||
set_surrounding_margins(self.debug_toggle, 10)
|
set_surrounding_margins(self.debug_toggle, 10)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue