diff --git a/dzgui.sh b/dzgui.sh index f49ef82..a918538 100755 --- a/dzgui.sh +++ b/dzgui.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash set -o pipefail -version=5.0.0.rc-25 +version=5.0.0.rc-27 #CONSTANTS aid=221100 @@ -536,10 +536,10 @@ fetch_dzq(){ fetch_helpers_by_sum(){ declare -A sums sums=( - ["ui.py"]="4dc76532cd01c221755e59e803456b57" + ["ui.py"]="ce3940391b9c7e80eb7af190e40fae41" ["query_v2.py"]="1822bd1769ce7d7cb0d686a60f9fa197" ["vdf2json.py"]="2f49f6f5d3af919bebaab2e9c220f397" - ["funcs"]="a41432675455a4983c7ba6d2e6681f05" + ["funcs"]="ded1276c0555577cc03cc36e9381a373" ) local author="aclist" local repo="dztui" diff --git a/helpers/funcs b/helpers/funcs index be4879f..c80a851 100755 --- a/helpers/funcs +++ b/helpers/funcs @@ -1,6 +1,6 @@ #!/usr/bin/env bash set -o pipefail -version=5.0.0.rc-26 +version=5.0.0.rc-27 #CONSTANTS aid=221100 @@ -362,7 +362,7 @@ get_unique_maps(){ < "$filter_file" awk -F$separator '{print $2}' | sort -u } query_config(){ - local key="$1" + [[ -n $2 ]] && local key=$2 keys=( "branch" "debug" @@ -1026,6 +1026,7 @@ try_connect(){ update_history "$record" if [[ -n $auto_install ]]; then + logger INFO "Merging modlists" diff=$(merge_modlists "$diff") fi if [[ -n $diff ]]; then @@ -1167,7 +1168,7 @@ check_timestamps(){ declare -A local_version 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 needs_update=() diff --git a/helpers/ui.py b/helpers/ui.py index befe546..822f6d1 100644 --- a/helpers/ui.py +++ b/helpers/ui.py @@ -15,7 +15,7 @@ locale.setlocale(locale.LC_ALL, '') gi.require_version("Gtk", "3.0") from gi.repository import Gtk, GLib, Gdk, GObject, Pango -# 5.0.0-rc.26 +# 5.0.0-rc.27 app_name = "DZGUI" cache = {} @@ -1526,6 +1526,8 @@ class FilterPanel(Gtk.Box): self.maps_combo.connect("key-press-event", self._on_esc_pressed) 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") set_surrounding_margins(self.debug_toggle, 10)