Browse Source

[Search] Fix engines dropdown menu

Bogdan Cordier 1 year ago
parent
commit
781dd23283
1 changed files with 5 additions and 4 deletions
  1. 5
    4
      hadaly/search.kv

+ 5
- 4
hadaly/search.kv View File

@@ -22,17 +22,18 @@
22 22
         id: action_overflow
23 23
     ActionGroup:
24 24
         mode: 'spinner'
25
+        auto_dismiss: True
25 26
         font_size: '20sp'
26 27
         text:_('Select a search engine')
27 28
         id: _action_group
28 29
         ActionButton:
29 30
             text: 'MetMuseum'
30
-            on_press: root.action_group.text = self.text
31
-            on_release: self.parent.parent.select(self.text)
31
+            on_press: _action_group.text = self.text
32
+            on_release: _action_group._dropdown.select(self.parent.parent.select(self.text))
32 33
         ActionButton:
33 34
             text: 'Getty OCI'
34
-            on_press: root.action_group.text = self.text
35
-            on_release: self.parent.parent.select(self.text)
35
+            on_press: _action_group.text = self.text
36
+            on_release: _action_group._dropdown.select(self.parent.parent.select(self.text))
36 37
 
37 38
 <SearchBox>:
38 39
     app: app

Loading…
Cancel
Save