mirror of
https://github.com/QuasarApp/Hanoi-Towers.git
synced 2025-05-14 10:29:34 +00:00
added client
This commit is contained in:
parent
28662fe2ad
commit
bae6cbceac
@ -164,10 +164,20 @@ void BackEnd::removeLocalUserData(const QString& name) {
|
||||
}
|
||||
|
||||
void BackEnd::handleOnlineRequest() {
|
||||
|
||||
auto _profile = dynamic_cast<ProfileData*>(sender());
|
||||
|
||||
if (!_profile)
|
||||
return;
|
||||
|
||||
if (!_client.login(_profile->name(), "")) {
|
||||
QmlNotificationService::NotificationService::getService()->setNotify(
|
||||
tr("Register online error"), tr("Failed to register this account, if this account was created by you, try to restore it."), "",
|
||||
QmlNotificationService::NotificationData::Error);
|
||||
}
|
||||
|
||||
// not supported
|
||||
QmlNotificationService::NotificationService::getService()->setNotify(
|
||||
tr("Register online error"), tr("not Supported"), "",
|
||||
QmlNotificationService::NotificationData::Warning);
|
||||
|
||||
// assert(false);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user