mirror of
https://github.com/penpot/penpot.git
synced 2025-05-08 03:05:53 +02:00
✨ Add debugging tool
This commit is contained in:
parent
2261bde6f1
commit
6901431f8a
2 changed files with 9 additions and 1 deletions
|
@ -25,6 +25,7 @@
|
||||||
[app.util.globals :as globals]
|
[app.util.globals :as globals]
|
||||||
[app.util.timers :as timers]
|
[app.util.timers :as timers]
|
||||||
[beicon.core :as rx]
|
[beicon.core :as rx]
|
||||||
|
[debug :refer [debug?]]
|
||||||
[goog.events :as events]
|
[goog.events :as events]
|
||||||
[rumext.alpha :as mf])
|
[rumext.alpha :as mf])
|
||||||
(:import goog.events.EventType))
|
(:import goog.events.EventType))
|
||||||
|
@ -269,7 +270,11 @@
|
||||||
|
|
||||||
;; We only allow active frames that are contained in the vbox
|
;; We only allow active frames that are contained in the vbox
|
||||||
(filter (partial inside-vbox vbox objects)))
|
(filter (partial inside-vbox vbox objects)))
|
||||||
all-frames)]
|
all-frames)
|
||||||
|
|
||||||
|
;; Debug only: Disable the thumbnails
|
||||||
|
new-active-frames
|
||||||
|
(if (debug? :disable-frame-thumbnails) (into #{} all-frames) new-active-frames)]
|
||||||
|
|
||||||
(when (not= @active-frames new-active-frames)
|
(when (not= @active-frames new-active-frames)
|
||||||
(reset! active-frames new-active-frames)))))))
|
(reset! active-frames new-active-frames)))))))
|
||||||
|
|
|
@ -64,6 +64,9 @@
|
||||||
|
|
||||||
;; Disable thumbnail cache
|
;; Disable thumbnail cache
|
||||||
:disable-thumbnail-cache
|
:disable-thumbnail-cache
|
||||||
|
|
||||||
|
;; Disable frame thumbnails
|
||||||
|
:disable-frame-thumbnails
|
||||||
})
|
})
|
||||||
|
|
||||||
;; These events are excluded when we activate the :events flag
|
;; These events are excluded when we activate the :events flag
|
||||||
|
|
Loading…
Add table
Reference in a new issue