 tray.on 'click', ->
     show_window()
 ewin.on 'restore', ->
-    clearTimeout hide_window_timeout
+    clearTimeout show_window_timeout
     if current_dialog == 1
         set_auto_hide_time 10
 ewin.on 'minimize', ->

ewin.setAlwaysOnTop true
window.isDebug = ewin.isDebug

hide_window_timeout = null
hide_window = ->
    ewin.hide()
    setTimeout show_window, 60000 * 5 # 5 min

show_window = ->
    ewin.show()
    render_all?()
    set_inactivity_check?()

                mixins.boxShadow theme.shadows.hard
            ]
            dialog


# Rendering main_component with ReactDOM in our HTML element ```app```
