diff options
Diffstat (limited to 'source/ui/MainMenu.mc')
| -rw-r--r-- | source/ui/MainMenu.mc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/source/ui/MainMenu.mc b/source/ui/MainMenu.mc index 3d13180..8863c6d 100644 --- a/source/ui/MainMenu.mc +++ b/source/ui/MainMenu.mc @@ -1,5 +1,5 @@ // Author: cirakg & claude ai -// Summary: The menu (README 13.1): lock now, PIN actions, settings results, entry IDs, clock status, about. +// Summary: The menu (README 13.1): phone changes to confirm, lock now, PIN actions, settings results, entry IDs, clock status, about. // // A native Menu2, so scrolling, touch and buttons behave like every other // Garmin menu. Debug builds add the items from DebugMenu. @@ -16,6 +16,10 @@ module MainMenu { function build() as WatchUi.Menu2 { var vault = AppState.theVault(); var menu = new WatchUi.Menu2({:title => "OTP Wallet"}); + var waiting = ChangeQueue.count(vault); + if (waiting > 0) { + menu.addItem(new WatchUi.MenuItem("Phone changes", waiting + " to confirm", :queue, null)); + } if (vault.session.isUnlocked()) { menu.addItem(new WatchUi.MenuItem("Lock now", null, :lock, null)); } @@ -120,6 +124,8 @@ class MainMenuDelegate extends WatchUi.Menu2InputDelegate { WatchUi.switchToView(new InfoView("Results", Results.lines(), "results"), new InfoDelegate(), WatchUi.SLIDE_LEFT); Results.markSeen(); + } else if (id == :queue) { + WatchUi.switchToView(QueueMenu.build(), new QueueMenuDelegate(), WatchUi.SLIDE_LEFT); } else if (id == :ids) { WatchUi.switchToView(new InfoView("Entry IDs", MainMenu.entryIdLines(), "ids"), new InfoDelegate(), WatchUi.SLIDE_LEFT); } else if (id == :clock) { |
