This will revert "Auto select if there is only one option to select."
This reverts commit e4ca11cc6fab9e2ee0a28dc7b08b460f7d8924b4.
| ... | ... |
@@ -158,13 +158,6 @@ class Menu(Action): |
| 158 | 158 |
curses.doupdate() |
| 159 | 159 |
|
| 160 | 160 |
def do_action(self): |
| 161 |
- # Auto select one and only item. |
|
| 162 |
- if len(self.items) == 1 and not self.selector_menu: |
|
| 163 |
- result = self.items[self.position][1](self.items[self.position][2]) |
|
| 164 |
- if result.success: |
|
| 165 |
- self.hide() |
|
| 166 |
- return result |
|
| 167 |
- |
|
| 168 | 161 |
while True: |
| 169 | 162 |
self.refresh() |
| 170 | 163 |
|