kingkont 0.7.95 → 0.7.96
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/package.json +1 -1
- package/renderer/state.js +13 -0
package/package.json
CHANGED
package/renderer/state.js
CHANGED
|
@@ -426,6 +426,19 @@ function getFileType(file) {
|
|
|
426
426
|
}
|
|
427
427
|
|
|
428
428
|
// =================== State ===================
|
|
429
|
+
// One-time migration: если юзер ранее залипал на Pro — сбрасываем на 2.
|
|
430
|
+
// Pro дороже и медленнее, как дефолт не оптимально. Маркер не даёт
|
|
431
|
+
// миграции отрабатывать повторно: после ручного выбора Pro он останется.
|
|
432
|
+
(function migrateImageModelDefault() {
|
|
433
|
+
try {
|
|
434
|
+
if (localStorage.getItem('imageModelResetV2') === '1') return;
|
|
435
|
+
if (localStorage.getItem('imageModel') === 'nano-banana-pro') {
|
|
436
|
+
localStorage.setItem('imageModel', 'nano-banana-2');
|
|
437
|
+
}
|
|
438
|
+
localStorage.setItem('imageModelResetV2', '1');
|
|
439
|
+
} catch {}
|
|
440
|
+
})();
|
|
441
|
+
|
|
429
442
|
const state = {
|
|
430
443
|
filmHandle: null,
|
|
431
444
|
currentBoard: null, // { kind, name, key, handle, metadata, urls }
|