()
| 382 | } |
| 383 | |
| 384 | func (a *App) switchViewNext() { |
| 385 | switch a.viewMode { |
| 386 | case ViewModePricing: |
| 387 | a.viewMode = ViewModeHistory |
| 388 | a.historyView.ActiveSection = views.HistorySectionHeader |
| 389 | if a.db != nil { |
| 390 | a.historyView.History, _ = a.db.GetHistory(100) |
| 391 | } |
| 392 | case ViewModeHistory: |
| 393 | a.viewMode = ViewModeSettings |
| 394 | a.settingsView.ActiveSection = views.SettingsSectionHeader |
| 395 | case ViewModeSettings: |
| 396 | a.viewMode = ViewModePricing |
| 397 | a.pricingView.ActiveSection = views.PricingSectionHeader |
| 398 | } |
| 399 | } |
| 400 | |
| 401 | func (a *App) switchViewPrev() { |
| 402 | switch a.viewMode { |
no test coverage detected