MCPcopy Create free account
hub / github.com/BombusMod/BombusMod / delAccount

Method delAccount

src/main/java/Account/AccountSelect.java:157–171  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

155 }
156
157 private void delAccount() {
158 if (itemsList.size() == 1) {
159 cf.accountIndex = -1;
160 } else if (cf.accountIndex > cursor) {
161 cf.accountIndex--;
162 }
163
164 cf.saveToStorage();
165
166 itemsList.removeElement(getFocusedObject());
167 rmsUpdate();
168 moveCursorHome();
169 commandState();
170 redraw();
171 }
172
173 private void switchAccount(boolean login) {
174 cf.accountIndex = cursor;

Callers 1

yesMethod · 0.95

Calls 7

rmsUpdateMethod · 0.95
commandStateMethod · 0.95
getFocusedObjectMethod · 0.80
sizeMethod · 0.45
saveToStorageMethod · 0.45
moveCursorHomeMethod · 0.45
redrawMethod · 0.45

Tested by

no test coverage detected