瀏覽代碼

fix focus on product in save and clear cb

Pi 2 年之前
父節點
當前提交
97e2642793
共有 1 個文件被更改,包括 1 次插入1 次删除
  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