 remote = require('electron').remote
 
-{applayout, convlist, listhead, messages, convhead, input, conninfo, convadd, controls,
-notifications, typinginfo, menu, trayicon, dockicon, startup, about} = require './index'
-
-models      = require '../models'
-{viewstate, connection} = models
-
-{later} = require '../util'
-
-
+{
+  applayout, convlist, listhead, messages, convhead, input, conninfo,
+  convadd, controls, notifications, typinginfo, menu, trayicon, dockicon,
+  startup, about
+} = require './index'
+
+models = require '../models'
+
+{ viewstate, connection } = models
+
+{ later } = require '../util'
+
+#                                    _   _
+#                                   | | (_)
+#     ___ ___  _ __  _ __   ___  ___| |_ _  ___  _ __
+#    / __/ _ \| '_ \| '_ \ / _ \/ __| __| |/ _ \| '_ \
+#   | (_| (_) | | | | | | |  __/ (__| |_| | (_) | | | |
+#    \___\___/|_| |_|_| |_|\___|\___|\__|_|\___/|_| |_|
+#
+#
 handle 'update:connection', do ->
     el = null
     ->

    else
        console.log 'unknown viewstate.state', viewstate.state

handle 'update:entity', ->
    redraw()

handle 'update:conv', ->
    redraw()

handle 'update:conv_count', ->
    dockicon viewstate
    trayicon models

handle 'update:searchedentities', ->
  redraw()

handle 'update:selectedEntities', ->
  redraw()

handle 'update:convsettings', -> redraw()

redraw = ->
    notifications models
    convhead models

    convadd models
    startup models

throttle = (fn, time=10) ->
    timeout = false
    # return a throttled version of fn
