Răsfoiți Sursa

fix: revert default filename format

Junyi Du 2 ani în urmă
părinte
comite
dfa6677380
1 a modificat fișierele cu 7 adăugiri și 1 ștergeri
  1. 7 1
      src/main/frontend/state.cljs

+ 7 - 1
src/main/frontend/state.cljs

@@ -307,7 +307,13 @@
 (def default-config
   "Default config for a repo-specific, user config"
   {:feature/enable-search-remove-accents? true
-   :default-arweave-gateway "https://arweave.net"})
+   :default-arweave-gateway "https://arweave.net"
+
+   ;; For flushing the settings of old versions. Don't bump this value.
+   ;; There are only two kinds of graph, one is not upgraded (:legacy) and one is upgraded (:triple-lowbar)
+   ;; For not upgraded graphs, the config will have no key `:file/name-format`
+   ;; Then the default value is applied
+   :file/name-format :legacy})
 
 ;; State that most user config is dependent on
 (declare get-current-repo sub set-state!)