Qt 5.12 ES5 → 7: Use "() =>" and array.includes

This commit is contained in:
miruka
2019-07-18 03:13:34 -04:00
parent f5d747cbc4
commit 8f53d2e018
11 changed files with 26 additions and 30 deletions

View File

@@ -23,10 +23,10 @@ Banner {
]
buttonCallbacks: {
"forget": function(button) {
"forget": button => {
button.loading = true
py.callClientCoro(
chatPage.userId, "room_forget", [chatPage.roomId], function() {
chatPage.userId, "room_forget", [chatPage.roomId], () => {
button.loading = false
})
}