Explorar el Código

fix focus on product in save and clear cb

Pi hace 2 años
padre
commit
97e2642793
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      grocery_transactions.py

+ 1 - 1
grocery_transactions.py

@@ -106,7 +106,7 @@ def _save_and_clear_callback(activity_manager):
     txn = activity_manager.get('transaction')
     activity_manager.app.save(txn.data)
     txn.clear()
-    txn.focus_on_product()
+    txn.focus_on(txn.edit_fields['product'])
     activity_manager.show(txn.update())
 
 args = sys.argv