brmbar-qt4: Add charge sound

..
This commit is contained in:
TrimenZ 2015-10-14 22:44:12 +02:00
parent fe80200e49
commit 906a3b62ed

View file

@ -107,6 +107,7 @@ class ShopAdapter(QtCore.QObject):
@QtCore.Slot('QVariant', 'QVariant', result='QVariant')
def chargeCredit(self, credit, userid):
subprocess.call(["sh", ALERT_SCRIPT, "charge"])
user = brmbar.Account.load(db, id = userid)
shop.add_credit(credit = credit, user = user)
balance = user.negbalance_str()