| 701 | } |
| 702 | |
| 703 | void GrWorkspace::ShowUserLoginDialog() { |
| 704 | UserLoginDialog dialog(app_->GetContext()); |
| 705 | auto r = dialog.exec(); |
| 706 | if (r == -1) { |
| 707 | // |
| 708 | ShowUserRegisterDialog(); |
| 709 | } |
| 710 | else if (r == 0) { |
| 711 | UpdateUserInfo(); |
| 712 | } |
| 713 | } |
| 714 | |
| 715 | void GrWorkspace::ShowSelectAvatarDialog() { |
| 716 | auto desktop_path = QStandardPaths::writableLocation(QStandardPaths::DesktopLocation); |