mirror of
https://github.com/aclist/dztui.git
synced 2024-12-27 12:52:36 +01:00
fix: duplicate options in context menu
This commit is contained in:
parent
abcbb1b427
commit
c01f9714f8
3 changed files with 15 additions and 8 deletions
|
@ -1,5 +1,11 @@
|
|||
# Changelog
|
||||
|
||||
## [5.5.0-beta.5] 2024-11-03
|
||||
### Changed
|
||||
- Use updated A2S_RULES logic
|
||||
### Fixed
|
||||
- Servers in saved servers list would populate context menu with same option when right-clicking in server browser
|
||||
|
||||
## [5.5.0-beta.4] 2024-10-31
|
||||
### Added
|
||||
- Expose a toggle setting for whether to launch the application in fullscreen
|
||||
|
|
6
dzgui.sh
6
dzgui.sh
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
set -o pipefail
|
||||
|
||||
version=5.5.0-beta.4
|
||||
version=5.5.0-beta.5
|
||||
|
||||
#CONSTANTS
|
||||
aid=221100
|
||||
|
@ -534,7 +534,7 @@ fetch_dzq(){
|
|||
logger INFO "DZQ is current"
|
||||
return 0
|
||||
fi
|
||||
local sha=788e85b82189cb3485d4a08ee350c67994b29ea3
|
||||
local sha=3088bbfb147b77bc7b6a9425581b439889ff3f7f
|
||||
local author="aclist"
|
||||
local repo="dayzquery"
|
||||
local url="https://raw.githubusercontent.com/$author/$repo/$sha/dayzquery.py"
|
||||
|
@ -569,7 +569,7 @@ fetch_helpers_by_sum(){
|
|||
[[ -f "$config_file" ]] && source "$config_file"
|
||||
declare -A sums
|
||||
sums=(
|
||||
["ui.py"]="f4aaf17ec91b95b9b951fc1bc7c2b7b4"
|
||||
["ui.py"]="dd7aa34df1d374739127cca3033a3f67"
|
||||
["query_v2.py"]="55d339ba02512ac69de288eb3be41067"
|
||||
["vdf2json.py"]="2f49f6f5d3af919bebaab2e9c220f397"
|
||||
["funcs"]="d8ae2662fbc3c62bdb5a51dec1935705"
|
||||
|
|
|
@ -779,11 +779,12 @@ class TreeView(Gtk.TreeView):
|
|||
return
|
||||
|
||||
for item in items:
|
||||
if subcontext == "Server browser" or "Recent servers" and item == "Add to my servers":
|
||||
record = "%s:%s" %(self.get_column_at_index(7), self.get_column_at_index(8))
|
||||
proc = call_out(widget, "is_in_favs", record)
|
||||
if proc.returncode == 0:
|
||||
item = "Remove from my servers"
|
||||
if subcontext == "Server browser" or "Recent servers":
|
||||
if item == "Add to my servers":
|
||||
record = "%s:%s" %(self.get_column_at_index(7), self.get_column_at_index(8))
|
||||
proc = call_out(widget, "is_in_favs", record)
|
||||
if proc.returncode == 0:
|
||||
item = "Remove from my servers"
|
||||
item = Gtk.MenuItem(label=item)
|
||||
item.connect("activate", self._on_menu_click)
|
||||
self.menu.append(item)
|
||||
|
|
Loading…
Reference in a new issue