MCPcopy Create free account
hub / github.com/XorTroll/Goldleaf / account_DefaultKey

Method account_DefaultKey

Goldleaf/source/ui/ui_MainMenuLayout.cpp:102–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100 }
101
102 void MainMenuLayout::account_DefaultKey() {
103 if(!acc::HasSelectedUser()) {
104 const auto option = g_MainApplication->DisplayDialog(cfg::Strings.GetString(348), cfg::Strings.GetString(349), {cfg::Strings.GetString(111), cfg::Strings.GetString(18)}, true);
105 if(option == 0) {
106 if(acc::SelectUser()) {
107 g_MainApplication->ShowNotification(cfg::Strings.GetString(324));
108 }
109 else {
110 g_MainApplication->ShowNotification(cfg::Strings.GetString(350));
111 return;
112 }
113 }
114 else {
115 return;
116 }
117 }
118
119 g_MainApplication->GetAccountLayout()->Load();
120 g_MainApplication->ShowLayout(g_MainApplication->GetAccountLayout());
121 }
122
123 void MainMenuLayout::amiibo_DefaultKey() {
124 g_MainApplication->ShowLayout(g_MainApplication->GetAmiiboDumpLayout());

Callers

nothing calls this directly

Calls 6

HasSelectedUserFunction · 0.85
SelectUserFunction · 0.85
DisplayDialogMethod · 0.80
ShowNotificationMethod · 0.80
ShowLayoutMethod · 0.80
LoadMethod · 0.45

Tested by

no test coverage detected