chore: Make login with matrix id more prominent again
This commit is contained in:
parent
1ca7fc971e
commit
31b4368f09
2 changed files with 9 additions and 7 deletions
|
|
@ -218,8 +218,8 @@ class HomeserverPickerController extends State<HomeserverPicker> {
|
|||
|
||||
void onMoreAction(MoreLoginActions action) {
|
||||
switch (action) {
|
||||
case MoreLoginActions.passwordLogin:
|
||||
checkHomeserverAction(legacyPasswordLogin: true);
|
||||
case MoreLoginActions.importBackup:
|
||||
restoreBackup();
|
||||
case MoreLoginActions.privacy:
|
||||
launchUrlString(AppConfig.privacyUrl);
|
||||
case MoreLoginActions.about:
|
||||
|
|
@ -228,7 +228,7 @@ class HomeserverPickerController extends State<HomeserverPicker> {
|
|||
}
|
||||
}
|
||||
|
||||
enum MoreLoginActions { passwordLogin, privacy, about }
|
||||
enum MoreLoginActions { importBackup, privacy, about }
|
||||
|
||||
class IdentityProvider {
|
||||
final String? id;
|
||||
|
|
|
|||
|
|
@ -38,11 +38,11 @@ class HomeserverPickerView extends StatelessWidget {
|
|||
onSelected: controller.onMoreAction,
|
||||
itemBuilder: (_) => [
|
||||
PopupMenuItem(
|
||||
value: MoreLoginActions.passwordLogin,
|
||||
value: MoreLoginActions.importBackup,
|
||||
child: Row(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
const Icon(Icons.login_outlined),
|
||||
const Icon(Icons.import_export_outlined),
|
||||
const SizedBox(width: 12),
|
||||
Text(L10n.of(context).loginWithMatrixId),
|
||||
],
|
||||
|
|
@ -212,8 +212,10 @@ class HomeserverPickerView extends StatelessWidget {
|
|||
),
|
||||
onPressed: controller.isLoading
|
||||
? null
|
||||
: controller.restoreBackup,
|
||||
child: Text(L10n.of(context).hydrate),
|
||||
: () => controller.checkHomeserverAction(
|
||||
legacyPasswordLogin: true,
|
||||
),
|
||||
child: Text(L10n.of(context).loginWithMatrixId),
|
||||
),
|
||||
],
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue