1
0
Fork 0
mirror of https://github.com/aclist/dztui.git synced 2024-12-28 05:12:36 +01:00

fix: duplicated combobox

This commit is contained in:
aclist 2024-10-31 16:54:56 +09:00
parent be06a87d8d
commit 9d1ff35559
3 changed files with 8 additions and 6 deletions

View file

@ -1,6 +1,10 @@
# Changelog # Changelog
## [5.5.0-beta.1] 2024-10-31 ## [5.5.0-beta.3] 2024-10-31
### Fixed
- Prevent maps combobox from duplicating contents
## [5.5.0-beta.2] 2024-10-31
### Fixed ### Fixed
- Restore keyboard input to keyword entry field - Restore keyboard input to keyword entry field

View file

@ -1,7 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -o pipefail set -o pipefail
version=5.5.0-beta.2 version=5.5.0-beta.3
#CONSTANTS #CONSTANTS
aid=221100 aid=221100
@ -566,7 +566,7 @@ fetch_helpers_by_sum(){
[[ -f "$config_file" ]] && source "$config_file" [[ -f "$config_file" ]] && source "$config_file"
declare -A sums declare -A sums
sums=( sums=(
["ui.py"]="804fd1ec88da07b7c6015fd341c5c133" ["ui.py"]="bfdc7d510cea375731d4b92b9c3ab510"
["query_v2.py"]="55d339ba02512ac69de288eb3be41067" ["query_v2.py"]="55d339ba02512ac69de288eb3be41067"
["vdf2json.py"]="2f49f6f5d3af919bebaab2e9c220f397" ["vdf2json.py"]="2f49f6f5d3af919bebaab2e9c220f397"
["funcs"]="105e7be170eea48ce61fcfe7b50b8f59" ["funcs"]="105e7be170eea48ce61fcfe7b50b8f59"

View file

@ -1864,9 +1864,8 @@ class FilterPanel(Gtk.Box):
completion.connect("match_selected", self._on_completer_match) completion.connect("match_selected", self._on_completer_match)
renderer_text = Gtk.CellRendererText(ellipsize=Pango.EllipsizeMode.END) renderer_text = Gtk.CellRendererText(ellipsize=Pango.EllipsizeMode.END)
self.maps_combo = Gtk.ComboBox.new_with_entry() self.maps_combo = Gtk.ComboBox.new_with_model_and_entry(map_store)
self.maps_combo.set_entry_text_column(0) self.maps_combo.set_entry_text_column(0)
self.maps_combo.set_model(map_store)
# instantiate maps completer entry # instantiate maps completer entry
self.maps_entry = self.maps_combo.get_child() self.maps_entry = self.maps_combo.get_child()
@ -1876,7 +1875,6 @@ class FilterPanel(Gtk.Box):
self.maps_entry.connect("key-press-event", self._on_map_entry_keypress) self.maps_entry.connect("key-press-event", self._on_map_entry_keypress)
self.maps_combo.pack_start(renderer_text, True) self.maps_combo.pack_start(renderer_text, True)
self.maps_combo.add_attribute(renderer_text, "text", 0)
self.maps_combo.connect("changed", self._on_map_changed) self.maps_combo.connect("changed", self._on_map_changed)
self.maps_combo.connect("key-press-event", self._on_esc_pressed) self.maps_combo.connect("key-press-event", self._on_esc_pressed)