FreeKill/Fk/Pages/Logic.js
notify 2acec5f20a
Qmldir (#155)
重组qml文件,使用qmldir文件实现模块化
2023-05-19 10:08:36 +08:00

16 lines
385 B
JavaScript

// SPDX-License-Identifier: GPL-3.0-or-later
callbacks["UpdateAvatar"] = function(jsonData) {
mainWindow.busy = false;
Self.avatar = jsonData;
toast.show("Update avatar done.");
}
callbacks["UpdatePassword"] = function(jsonData) {
mainWindow.busy = false;
if (jsonData === "1")
toast.show("Update password done.");
else
toast.show("Old password wrong!", 5000);
}