diff --git a/i18n/en/Editor.resx b/i18n/en/Editor.resx index b371aa79..79860a7a 100644 --- a/i18n/en/Editor.resx +++ b/i18n/en/Editor.resx @@ -191,12 +191,15 @@ Path smoothing Stabilise Existing + Free space Mediathe photos the workspace copies: proxies or originals New + Not enough space Open Originals Project Proxies + Copy size Open in workspace {0}: {1} → {2}invariant {0}: {1} ← {2}invariant; right-to-left languages: the arrow points from the old value to the new one @@ -373,8 +376,11 @@ {0} pxinvariant {0}invariant {0}×invariant + Choose folder Later {0} was changed in the library while you edited it here. These settings differ: keep yours, take the library's, or keep both as two projects.long; {0} project name + Saved by a newer Chronoslong; the one line a conflict of format lists + {0} was saved in the library by a newer Chronos, whose settings this one does not merge with yours. Keep both as two projects, or update Chronos.long; {0} project name Take library'stake the library's values where both sides changed a setting Changed in the library too Workspace copy failed @@ -402,6 +408,7 @@ Not sentversions saved here wait to be sent to the library Library newerthe library has versions the workspace has not taken Conflict + Damaged Not in library In sync No media diff --git a/i18n/en/Errors.resx b/i18n/en/Errors.resx index c1581591..a6f90311 100644 --- a/i18n/en/Errors.resx +++ b/i18n/en/Errors.resx @@ -55,14 +55,17 @@ A file of this project in the workspace cannot be read; the log names it. The workspace drive needs {0} GB more for this copy.{0} gigabytes missing The last edit could not be stored yet; it is tried again, try once more in a moment. + {0} cannot be used as the workspace folder; the log says why.long; {0} folder The library's copy of this project does not match what was sent; nothing was removed. The workspace folder is inside a library; nothing is copied into it. - The workspace folder {0} is inside a library, where Edit copies nothing: keep Chronos's data folder outside your libraries.long + The workspace folder {0} is inside a library, where Edit copies nothing: choose another workspace folder.long + {0} is inside a library, where Edit copies nothing: choose a folder outside your libraries.long; {0} folder A project name has 1 to 60 characters. The Main project holds the sequence's own settings: it cannot be deleted. The workspace's photos of this project changed; the editor reads them again. The workspace holds no photos of this project; open it again to copy them. Another project of this sequence has that name. + The drive of the workspace folder lacks room for this copy and the 0.5 GB the copy keeps free. The project is no longer in the workspace. The library cannot be reached now; your work stays in the workspace and can be sent once it is back. The workspace copies proxies for now; copying the originals comes in a later version. @@ -70,6 +73,7 @@ The workspace copy job has no valid parameters. This project is no longer in the library. This project was saved by a newer Chronos: it opens read-only. + The library is read-only now; your work stays in the workspace and can be sent once it is writable. The library refused a version of this project; the log says why. This project's sequence is no longer in the library: only its local copy can be removed, from the picker's menu.long Some work is not in the library yet: send it first, or discard it. diff --git a/i18n/en/Server.resx b/i18n/en/Server.resx index 48843efc..2928180e 100644 --- a/i18n/en/Server.resx +++ b/i18n/en/Server.resx @@ -14,6 +14,7 @@ TLS {0} trusted {1} Cancel {0} differs{0} setting name + {0} ({1})invariant; {0} setting name, {1} number of photos it differs on {0} {1} here, {2} on the serverlong; {0} setting name, {1} value on this PC, {2} value on the server The server copy of {0} will be replaced by this PC's settings.long; {0} sequence title Keep this PC's settings? diff --git a/i18n/en/Settings.resx b/i18n/en/Settings.resx index bc2192bd..dbc94927 100644 --- a/i18n/en/Settings.resx +++ b/i18n/en/Settings.resx @@ -198,9 +198,18 @@ {0} used Latest version After each version + Change… + Edit lists the projects in {0} from now on. Those in {1} stay where they are, and come back if you choose that folder again.long; {0} the folder chosen, {1} the folder in use + Use another workspace folder?long; confirmation heading + Workspace folder changed + Choose the workspace folderlong; folder picker title Folder Kept versions + Folder not changed + Projects found: {0}{0} count of the projects the folder chosen holds + Projects left: {0}{0} count of the projects the folder in use keeps Sync + Use folder {0} version {0} versions diff --git a/i18n/en/Tooltips.resx b/i18n/en/Tooltips.resx index b48b5abb..da4b8aea 100644 --- a/i18n/en/Tooltips.resx +++ b/i18n/en/Tooltips.resx @@ -223,12 +223,14 @@ Not applicable: stabilisation is off Not applicable: stacking is off Open a project the library has for this sequence; Main holds its settings as they are + Free space on the drive of the workspace folder; the copy keeps 0.5 GB free besides The new project's name: 1 to 60 characters, each name once per sequence A new project of this sequence, starting from Main Copy the project's photos into the workspace, then open it there Copying the originals, to render on this PC, comes in a later update The sequence's projects in the library Copy the proxies: light and fast to edit; renders use the library's originals + What the copy of the proxies writes into the workspace, as reckoned before it starts Let the advisor set every section from the analysis and list what changed The advisor never stacks on its own: a median erases moving stars Apply the advisor’s heavier choices for this section and list what changed · Ctrl+Z undoes @@ -324,15 +326,19 @@ Photos shown per second of video; more plays the sequence faster Close without the change; the stored settings stay as they were Stay in the editor; saving is retried in the background + Choose a workspace folder outside your libraries; nothing is moved The settings that differ: your value, then the library's Keep your values of these settings; they are sent to the library Decide later and keep editing; Sync asks again Photos were added to or removed from this sequence in the library after the workspace copied it + The library's project was saved by a newer Chronos: its settings are not merged with yours, so Keep mine and Take library's are not offered Open project {0}, which holds your versionslong Keep the library's values in this project, and send yours to a new project “{0}”{0} the new project's name + Send your versions to a new project “{0}”; this project takes the library's, read-only until Chronos is updated{0} the new project's name Versions saved here that wait to be sent to the library: {0}. Sync sends them{0} number of versions Versions in the library this workspace has not taken yet: {0}. Sync takes them{0} number of versions You and the library changed the same settings: Sync to choose which to keep + This copy's project file cannot be read, so it cannot open; Remove local copy keeps its files in the workspace's trash The library no longer has this project or its sequence: nothing more can be sent; remove the local copy (its work is kept aside)long Every version of this project is in the library, and nothing changed since the last one The workspace holds no photos of this project: opening it copies them again @@ -708,6 +714,7 @@ Where frames spill and thumbnails are kept; a fast SSD helps · Enter applies, Esc reverts Largest size of the disk cache in GB · Enter applies, Esc reverts Space the cache uses and free space on its drive + Use another workspace folder, after a plan; nothing is moved: the projects of this one stay here Look for a new release when Chronos starts · no data is sent Delete the cache contents now Delete spilled frames and cached thumbnails; asks first @@ -731,6 +738,7 @@ Keep the index as it is Log files last written longer ago are deleted Keep every setting as it is + Keep the workspace folder in use How many of the library's versions each project keeps on this PC besides those not sent; older ones stay in the library Language of the interface · applies immediately A log file that reaches this size continues in a new numbered file @@ -794,7 +802,8 @@ Every pixel is decoded No decoder on this PC reads its pixels; such frames are left out of renders Send a daily anonymous count of versions and languages in use; nothing else, off by default - The workspace's folder (a fast disk is best); moving it comes in a later update + Edit uses this folder from now on; nothing is moved or deleted + The workspace's folder (a fast disk is best); Change uses another one, moving it comes in a later update Send each version you save to the library at once, and take the library's new versions Install in Program Files for every account · asks for administrator approval {0} · it runs as a Windows service, so it installs for all users in Program Files diff --git a/i18n/it/Editor.it.resx b/i18n/it/Editor.it.resx index dcc5a09f..38bc3bcb 100644 --- a/i18n/it/Editor.it.resx +++ b/i18n/it/Editor.it.resx @@ -183,12 +183,15 @@ Smussatura percorso Stabilizza Esistente + Spazio libero Media Nuovo + Spazio insufficiente Apri Originali Progetto Proxy + Dimensione copia Apri nello spazio di lavoro {0} impostazione cambiata {0} impostazioni cambiate @@ -348,8 +351,11 @@ Nessuno Disattivo Attivo + Scegli cartella Più tardi {0} è stato modificato nella libreria mentre lo modificavi qui. Queste impostazioni sono diverse: tieni le tue, prendi quelle della libreria o tienile entrambe come due progetti. + Salvato da un Chronos più recente + {0} è stato salvato nella libreria da un Chronos più recente, le cui impostazioni questo non unisce alle tue. Tienile entrambe come due progetti, oppure aggiorna Chronos. Prendi la libreria Modificato anche nella libreria Copia di lavoro non riuscita @@ -377,6 +383,7 @@ Da inviare Libreria più nuova Conflitto + Danneggiato Non in libreria Sincronizzato Senza media diff --git a/i18n/it/Errors.it.resx b/i18n/it/Errors.it.resx index 84954535..7e758a75 100644 --- a/i18n/it/Errors.it.resx +++ b/i18n/it/Errors.it.resx @@ -55,14 +55,17 @@ Un file di questo progetto nello spazio di lavoro non è leggibile; il log lo indica. Al disco dello spazio di lavoro servono altri {0} GB per questa copia. L'ultima modifica non è ancora stata memorizzata; viene ritentata, riprova tra un momento. + {0} non si può usare come cartella dello spazio di lavoro; il registro dice perché. La copia di questo progetto nella libreria non corrisponde a quanto inviato; non è stato rimosso nulla. La cartella dello spazio di lavoro è dentro una libreria; non vi viene copiato nulla. - La cartella dello spazio di lavoro {0} è dentro una libreria, dove Modifica non copia nulla: tieni la cartella dei dati di Chronos fuori dalle tue librerie. + La cartella dello spazio di lavoro {0} è dentro una libreria, dove Modifica non copia nulla: scegli un'altra cartella dello spazio di lavoro. + {0} è dentro una libreria, dove Modifica non copia nulla: scegli una cartella fuori dalle tue librerie. Il nome di un progetto ha da 1 a 60 caratteri. Il progetto Principale contiene le impostazioni della sequenza: non può essere eliminato. Le foto di questo progetto nello spazio di lavoro sono cambiate; l'editor le rilegge. Lo spazio di lavoro non ha foto di questo progetto; riaprilo per copiarle. Un altro progetto di questa sequenza ha già quel nome. + All'unità della cartella dello spazio di lavoro manca lo spazio per questa copia e per gli 0,5 GB che la copia lascia liberi. Il progetto non è più nello spazio di lavoro. La libreria ora non è raggiungibile; il tuo lavoro resta nello spazio di lavoro e potrà essere inviato quando torna. Per ora lo spazio di lavoro copia i proxy; la copia degli originali arriverà in una versione successiva. @@ -70,6 +73,7 @@ Il job di copia di lavoro non ha parametri validi. Questo progetto non è più nella libreria. Questo progetto è stato salvato da un Chronos più recente: si apre in sola lettura. + La libreria ora è di sola lettura; il tuo lavoro resta nello spazio di lavoro e potrà essere inviato quando sarà scrivibile. La libreria ha rifiutato una versione di questo progetto; il log spiega il motivo. La sequenza di questo progetto non è più nella libreria: si può solo rimuoverne la copia locale, dal menu del selettore. Parte del lavoro non è ancora nella libreria: prima inviala oppure scartala. diff --git a/i18n/it/Server.it.resx b/i18n/it/Server.it.resx index 61193ad6..df711ae3 100644 --- a/i18n/it/Server.it.resx +++ b/i18n/it/Server.it.resx @@ -13,6 +13,7 @@ TLS {0} attendibile dal {1} Annulla {0}: valori diversi + {0} ({1}) {0} {1} qui, {2} sul server La copia sul server di {0} sarà sostituita dalle impostazioni di questo PC. Tenere le impostazioni di questo PC? diff --git a/i18n/it/Settings.it.resx b/i18n/it/Settings.it.resx index 4af7d46b..3a98ada2 100644 --- a/i18n/it/Settings.it.resx +++ b/i18n/it/Settings.it.resx @@ -195,9 +195,18 @@ {0} usati Ultima versione Dopo ogni versione + Cambia… + Da ora Modifica elenca i progetti in {0}. Quelli in {1} restano dove sono e tornano se scegli di nuovo quella cartella. + Usare un'altra cartella dello spazio di lavoro? + Cartella cambiata + Scegli la cartella dello spazio di lavoro Cartella Versioni tenute + Cartella non cambiata + Progetti trovati: {0} + Progetti lasciati: {0} Sincronizzazione + Usa cartella {0} versione {0} versioni diff --git a/i18n/it/Tooltips.it.resx b/i18n/it/Tooltips.it.resx index d3b216a5..7e71b8c0 100644 --- a/i18n/it/Tooltips.it.resx +++ b/i18n/it/Tooltips.it.resx @@ -223,12 +223,14 @@ Non applicabile: la stabilizzazione è spenta Non applicabile: lo stacking è spento Apri un progetto che la libreria ha per questa sequenza; Principale ne contiene le impostazioni attuali + Spazio libero sull'unità della cartella dello spazio di lavoro; la copia lascia liberi anche 0,5 GB Il nome del nuovo progetto: da 1 a 60 caratteri, ogni nome una sola volta per sequenza Un nuovo progetto di questa sequenza, a partire da Principale Copia le foto del progetto nello spazio di lavoro, poi aprilo lì La copia degli originali, per renderizzare su questo PC, arriverà in un aggiornamento successivo I progetti della sequenza nella libreria Copia i proxy: leggeri e veloci da modificare; i render usano gli originali della libreria + Quanto scrive nello spazio di lavoro la copia dei proxy, come stimato prima che inizi Lascia che il consulente imposti ogni sezione dall’analisi ed elenchi cosa è cambiato Il consulente non fa mai stacking da solo: una mediana cancella le stelle in movimento Applica le scelte più incisive del consulente per questa sezione ed elenca cosa è cambiato · Ctrl+Z annulla @@ -323,15 +325,19 @@ Foto mostrate per secondo di video; di più accelera la sequenza Chiude senza la modifica; le impostazioni salvate restano com’erano Resta nell’editor; il salvataggio viene ritentato in background + Scegli una cartella dello spazio di lavoro fuori dalle tue librerie; non viene spostato nulla Le impostazioni diverse: il tuo valore, poi quello della libreria Tieni i tuoi valori di queste impostazioni; vengono inviati alla libreria Decidi più tardi e continua a modificare; Sincronizza lo chiede di nuovo Sono state aggiunte o tolte foto a questa sequenza nella libreria dopo che lo spazio di lavoro l'ha copiata + Il progetto della libreria è stato salvato da un Chronos più recente: le sue impostazioni non si uniscono alle tue, quindi Tieni le mie e Prendi la libreria non sono proposti Apri il progetto {0}, che contiene le tue versioni Tieni i valori della libreria in questo progetto e invia i tuoi a un nuovo progetto «{0}» + Invia le tue versioni a un nuovo progetto «{0}»; questo progetto prende quello della libreria, in sola lettura finché Chronos non viene aggiornato Versioni salvate qui in attesa di essere inviate alla libreria: {0}. Sincronizza le invia Versioni nella libreria non ancora prese da questo spazio di lavoro: {0}. Sincronizza le prende Tu e la libreria avete modificato le stesse impostazioni: sincronizza per scegliere quali tenere + Il file di progetto di questa copia non si può leggere, quindi non si apre; Rimuovi copia locale ne tiene i file nel cestino dello spazio di lavoro La libreria non ha più questo progetto o la sua sequenza: non si può più inviare nulla; rimuovi la copia locale (il suo lavoro resta da parte) Ogni versione di questo progetto è nella libreria e nulla è cambiato dall'ultima Lo spazio di lavoro non ha foto di questo progetto: aprirlo le copia di nuovo @@ -706,6 +712,7 @@ Dove vanno i fotogrammi temporanei e le miniature; un SSD veloce aiuta · Invio applica, Esc annulla Dimensione massima della cache su disco in GB · Invio applica, Esc annulla Spazio usato dalla cache e spazio libero sulla sua unità + Usa un'altra cartella dello spazio di lavoro, dopo un piano; non viene spostato nulla: i progetti di questa restano qui Cerca una nuova versione all'avvio di Chronos · nessun dato viene inviato Elimina adesso il contenuto della cache Elimina fotogrammi temporanei e miniature in cache; prima chiede conferma @@ -729,6 +736,7 @@ Lascia l'indice com'è I file di log scritti l'ultima volta prima di questo periodo vengono eliminati Lascia ogni impostazione com'è + Tieni la cartella dello spazio di lavoro in uso Quante versioni della libreria ogni progetto tiene su questo PC oltre a quelle non inviate; le più vecchie restano nella libreria Lingua dell'interfaccia · si applica subito Un file di log che raggiunge questa dimensione prosegue in un nuovo file numerato @@ -792,7 +800,8 @@ Ogni pixel viene decodificato Nessun decodificatore su questo PC ne legge i pixel; questi fotogrammi restano fuori dai rendering Invia ogni giorno un conteggio anonimo di versioni e lingue in uso; nient'altro, disattivato per impostazione predefinita - La cartella dello spazio di lavoro (meglio un disco veloce); spostarla arriverà in un aggiornamento successivo + Modifica usa questa cartella da ora; nulla viene spostato o eliminato + La cartella dello spazio di lavoro (meglio un disco veloce); Cambia ne usa un'altra, spostarla arriverà in un aggiornamento successivo Invia subito alla libreria ogni versione che salvi e prendi le nuove versioni della libreria Installa in Programmi per tutti gli account · chiede l'autorizzazione di amministratore {0} · è un servizio di Windows, quindi si installa per tutti gli utenti in Programmi diff --git a/src/Chronos.App/Sections/SequencePickerViewModel.cs b/src/Chronos.App/Sections/SequencePickerViewModel.cs index 6a1da6e2..b9a53cfa 100644 --- a/src/Chronos.App/Sections/SequencePickerViewModel.cs +++ b/src/Chronos.App/Sections/SequencePickerViewModel.cs @@ -285,6 +285,8 @@ public sealed class SequencePickerViewModel : LocalizedViewModel foreach (var item in items) { if (generation != _generation) return; + // Its working state cannot be read: there is no state to ask for. + if (item.IsDamaged) continue; try { item.Status = await Shell.Services.Workspace.StatusAsync(item.ProjectId); diff --git a/src/Chronos.App/Sections/SequenceViewModel.cs b/src/Chronos.App/Sections/SequenceViewModel.cs index e5995158..0fe5e8a7 100644 --- a/src/Chronos.App/Sections/SequenceViewModel.cs +++ b/src/Chronos.App/Sections/SequenceViewModel.cs @@ -232,6 +232,12 @@ public sealed class SequenceViewModel : SectionViewModel KeepOpenSequence(); return; } + // A copy whose working state cannot be read cannot open: its removal plan is what it offers. + if (item.IsDamaged) + { + await RemoveProjectCopyAsync(item); + return; + } await OpenProjectAsync(item.SequenceId, item.ProjectId); } @@ -589,6 +595,8 @@ public sealed class SequenceViewModel : SectionViewModel { Main: true } => (await workspace.ProjectsOfAsync(row.Id)).FirstOrDefault(p => p.IsMain), _ => await workspace.LastUsedAsync(row.Id), }; + // Its working state cannot be read: nothing is checked out over it (the picker offers Remove local copy). + if (entry is { Damaged: true }) throw new WorkspaceException(Loc.L("Errors.Workspace.Damaged")); if (entry is { HasMedia: true }) { workspace.Remember(row.Id, entry.ProjectId); @@ -613,16 +621,43 @@ public sealed class SequenceViewModel : SectionViewModel } (projectId, newName) = (choice.ProjectId, choice.NewName); } - var checkout = await workspace.CheckoutAsync(row.Id, projectId, newName); + WorkspaceCheckout checkout; + try + { + checkout = await workspace.CheckoutAsync(row.Id, projectId, newName); + } + catch (WorkspaceException ex) when (ex.FolderRefused) + { + // Nothing was written: the way on is another workspace folder, offered from the refusal. + Log.Info("workspace", $"Sequence {row.Id} not checked out: {ex.Message}"); + Shell.Notify(Loc.L("Editor.Workspace.OpenFailed"), ex.Message, Loc.L("Editor.Workspace.ChooseFolder"), Loc.L("Tooltips.Editor.Workspace.ChooseFolder"), + () => _ = WorkspaceFolderChange.ChooseAsync(Shell), isError: true); + _afterOpen = null; + Shell.KeepSequence(OpenSequenceId); + return null; + } await FollowCopyAsync(row.Id, row.DisplayTitle, checkout.Project.Id, checkout.Copy); return null; } - /// "Open in workspace": the projects of the sequence's home and the media; null when closed without a choice. + /// + /// "Open in workspace": the projects of the sequence's home, the media, what their copy writes and the room the + /// workspace's drive has; null when closed without a choice. + /// private async Task AskProjectAsync(WorkspaceHost workspace, Sequence row) { var projects = await workspace.HomeProjectsAsync(row.Id); - var dialog = new OpenInWorkspaceDialogViewModel(row.DisplayTitle, projects, d => CloseDialog(d)); + WorkspaceCopyFacts? copy = null; + try + { + copy = await workspace.CopyFactsAsync(row.Id); + } + catch (Exception ex) when (ex is System.IO.IOException or System.IO.InvalidDataException or InvalidOperationException or DatabaseException or UnauthorizedAccessException) + { + // Only shown: the copy measures again before it writes. + Log.Info("workspace", $"The copy of sequence {row.Id} could not be measured: {ex.Message}"); + } + var dialog = new OpenInWorkspaceDialogViewModel(row.DisplayTitle, projects, d => CloseDialog(d), copy: copy); // The picker or the open sequence shows behind the dialog meanwhile, not the progress bar. IsLoading = false; OpenDialog(dialog); @@ -679,6 +714,23 @@ public sealed class SequenceViewModel : SectionViewModel Shell.Notify(Loc.L(fetch.ProjectId is null ? "Editor.Proxies.Failed" : "Editor.Workspace.CopyFailed"), job.Error ?? fetch.Title, Loc.L("Shell.Nav.Jobs"), Loc.L("Tooltips.Nav.Jobs"), () => Shell.Navigate(SectionKey.Jobs), isError: true); break; + // The user cancelled the first copy of a project's media: the photos it wrote go (a failed one keeps them for its retry). + case JobState.Cancelled when fetch.ProjectId is { } cancelled: + _ = RemovePartialMediaAsync(cancelled); + break; + } + } + + private async Task RemovePartialMediaAsync(Guid projectId) + { + try + { + await Shell.Services.Workspace.RemovePartialMediaAsync(projectId); + } + catch (Exception ex) when (ex is not OutOfMemoryException) + { + // Copies the library can make again: they wait for the next copy, which checks each. + Log.Warning("workspace", $"The media of a cancelled copy of project {projectId} could not be removed", ex); } } diff --git a/src/Chronos.App/Sections/SettingsView.xaml b/src/Chronos.App/Sections/SettingsView.xaml index e87dd1cc..cef31194 100644 --- a/src/Chronos.App/Sections/SettingsView.xaml +++ b/src/Chronos.App/Sections/SettingsView.xaml @@ -522,17 +522,21 @@ - + +