       title: 'My shows'
       icon: ICON_MENU_HOME
       id: 'myShows'
+    }, {
+      title: 'Advanced'
+      id: 'advanced'
     }]
   ]
-
-if ADVANCED_MENU
-  mainMenu.state.sections[0].items.push
-    title: 'Advanced'
-    id: 'advanced'
 
 mainMenu.show()
 

      advancedMenu = new UI.Menu
        sections: [
          items: [{
            title: 'Reset localStorage'
            action: ->
              localStorage.clear()
              initSettings()
              notificationCard = new UI.Card(
                title: 'Sign-in required'
                body: 'Open the Pebble App and configure Pebble Shows.'
              )
              notificationCard.show()

              console.log "Local storage cleared"
          }, {
            title: 'Refresh'
            action: -> refreshModels()
          }]
        ]
      advancedMenu.on 'select', (e) -> e.item.action()


signInWindow = undefined
shows = undefined

traktvRequest = (opt, success, failure) ->
  console.log "traktvRequest: opt: #{JSON.stringify opt}"
