react-os-shell 0.1.9 → 0.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +10 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -643,7 +643,7 @@ function StatusBadge({ status }) {
|
|
|
643
643
|
}
|
|
644
644
|
|
|
645
645
|
// src/version.ts
|
|
646
|
-
var VERSION = "0.1.
|
|
646
|
+
var VERSION = "0.1.10" ;
|
|
647
647
|
var APP_VERSION = VERSION;
|
|
648
648
|
|
|
649
649
|
// src/changelog.ts
|
|
@@ -858,14 +858,17 @@ function Desktop({ profile }) {
|
|
|
858
858
|
const [stickyDrag, setStickyDrag] = useState(null);
|
|
859
859
|
const [stickyResize, setStickyResize] = useState(null);
|
|
860
860
|
const saveDocs = useCallback((docs) => {
|
|
861
|
-
host.saveShortcuts
|
|
862
|
-
|
|
861
|
+
if (host.saveShortcuts) host.saveShortcuts(docs);
|
|
862
|
+
else saveShellPrefs({ favorite_documents: docs });
|
|
863
|
+
}, [host, saveShellPrefs]);
|
|
863
864
|
const saveFolders = useCallback((f) => {
|
|
864
|
-
host.saveFolders
|
|
865
|
-
|
|
865
|
+
if (host.saveFolders) host.saveFolders(f);
|
|
866
|
+
else saveShellPrefs({ desktop_folders: f });
|
|
867
|
+
}, [host, saveShellPrefs]);
|
|
866
868
|
useCallback((v) => {
|
|
867
|
-
host.saveSnap
|
|
868
|
-
|
|
869
|
+
if (host.saveSnap) host.saveSnap(v);
|
|
870
|
+
else saveShellPrefs({ desktop_snap: v });
|
|
871
|
+
}, [host, saveShellPrefs]);
|
|
869
872
|
const getDefaultPos = (idx) => {
|
|
870
873
|
const col = Math.floor(idx / 8);
|
|
871
874
|
const row = idx % 8;
|