update: rename function

This commit is contained in:
Daniel Gonzalez Albo
2025-10-07 00:39:20 +02:00
committed by Nicolás Hatcher Andrés
parent eb3e92ffd8
commit b506ccf908
2 changed files with 3 additions and 3 deletions

View File

@@ -12,7 +12,7 @@ import {
createNewModel,
deleteSelectedModel,
isStorageEmpty,
loadModelFromStorageOrCreate,
loadSelectedModelFromStorage,
saveModelToStorage,
saveSelectedModelInStorage,
selectModelFromStorage,
@@ -56,7 +56,7 @@ function App() {
}
} else {
// try to load from local storage
const newModel = loadModelFromStorageOrCreate();
const newModel = loadSelectedModelFromStorage();
if (!newModel) {
setShowWelcomeDialog(true);
setIsTemplateOnlyDialog(false); // Full dialog for first-time usage

View File

@@ -60,7 +60,7 @@ export function createNewModel(): Model {
return model;
}
export function loadModelFromStorageOrCreate(): Model | null {
export function loadSelectedModelFromStorage(): Model | null {
const uuid = localStorage.getItem("selected");
if (uuid) {
// We try to load the selected model