()
| 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; |
no test coverage detected