mirror of
https://github.com/brmlab/brmbar.git
synced 2025-06-07 21:04:00 +02:00
brmbar-qt4: Add charge sound
..
This commit is contained in:
parent
fe80200e49
commit
906a3b62ed
1 changed files with 1 additions and 0 deletions
|
@ -107,6 +107,7 @@ class ShopAdapter(QtCore.QObject):
|
||||||
|
|
||||||
@QtCore.Slot('QVariant', 'QVariant', result='QVariant')
|
@QtCore.Slot('QVariant', 'QVariant', result='QVariant')
|
||||||
def chargeCredit(self, credit, userid):
|
def chargeCredit(self, credit, userid):
|
||||||
|
subprocess.call(["sh", ALERT_SCRIPT, "charge"])
|
||||||
user = brmbar.Account.load(db, id = userid)
|
user = brmbar.Account.load(db, id = userid)
|
||||||
shop.add_credit(credit = credit, user = user)
|
shop.add_credit(credit = credit, user = user)
|
||||||
balance = user.negbalance_str()
|
balance = user.negbalance_str()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue