                 (-> tab
                     select-tab-keys
                     (assoc :active true
-                           :start-time (now))))
+                           :start-time (or start-time (now)))))
       app-state)))
 
 

      ;; De-activate every inactive tab
      (doseq [tab now-inactive]
        (dispatch [:handle-deactivation tab true (:time suspend-info)]))
      (console/log "From suspend:" suspend-info)
      (console/log "Still active:" active-old-tabs)
      app-state
      )
    ))


(register-handler
  :handle-activation
  (fn [app-state [_ tab start-time]]
    (console/log "Handling activation" tab)
    (if tab
      (assoc-in app-state
