feat(app): keep sharing from the tray when the window closes
The owner wants the shared library to keep running while Chronos runs. While sharing is on (or on its way), closing the main window now hides it behind a tray icon (Open Chronos, Exit) instead of ending Chronos. Exit asks first when clients used the library in the last minutes, then closes the window for real, so the editor still stores its last edit and the exit path stops sharing before the other services. A start at sign-in (--minimized) with sharing on waits in the tray. With sharing off nothing changes. The decisions live in ShareLifetime (unit-tested); ShellTray wires them to the window, LibraryShare and OsNotifications, whose balloons reuse the icon. Server > This library also warns when the 1.0 Windows Server's service (ChronosServer) is installed, through a read-only SCM P/Invoke probe. Refs #67 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
f30eb2904a
commit
192265f1b7
18 files changed
+502
-6
No files matched your search
@@ -206,6 +206,7 @@
|
||||
<data name="Server.Share.Copy" xml:space="preserve"><value>Copia</value></data>
|
||||
<data name="Server.Share.Fingerprint" xml:space="preserve"><value>Impronta</value></data>
|
||||
<data name="Server.Share.Hide" xml:space="preserve"><value>Nascondi</value></data>
|
||||
<data name="Server.Share.LegacyService" xml:space="preserve"><value>Server 1.0 installato</value></data>
|
||||
<data name="Server.Share.NoClients" xml:space="preserve"><value>Nessuno</value></data>
|
||||
<data name="Server.Share.Ports" xml:space="preserve"><value>Porte</value></data>
|
||||
<data name="Server.Share.PortsValue" xml:space="preserve"><value>HTTPS {0} · HTTP {1}</value></data>
|
||||
|
||||
@@ -4,6 +4,10 @@
|
||||
<resheader name="version"><value>2.0</value></resheader>
|
||||
<resheader name="reader"><value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value></resheader>
|
||||
<resheader name="writer"><value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value></resheader>
|
||||
<data name="Shell.Exit.Heading" xml:space="preserve"><value>Interrompere la condivisione?</value></data>
|
||||
<data name="Shell.Exit.Keep" xml:space="preserve"><value>Continua a condividere</value></data>
|
||||
<data name="Shell.Exit.Message.one" xml:space="preserve"><value>{0} client ha usato questa libreria negli ultimi minuti. Uscendo da Chronos la condivisione si interrompe.</value></data>
|
||||
<data name="Shell.Exit.Message.other" xml:space="preserve"><value>{0} client hanno usato questa libreria negli ultimi minuti. Uscendo da Chronos la condivisione si interrompe.</value></data>
|
||||
<data name="Shell.Homes.Clash" xml:space="preserve"><value>ID server in conflitto</value></data>
|
||||
<data name="Shell.Homes.Moved.one" xml:space="preserve"><value>{0} progetto spostato</value></data>
|
||||
<data name="Shell.Homes.Moved.other" xml:space="preserve"><value>{0} progetti spostati</value></data>
|
||||
@@ -39,6 +43,11 @@
|
||||
<data name="Shell.Status.Photos.other" xml:space="preserve"><value>{0:N0} foto</value></data>
|
||||
<data name="Shell.Status.Sequences.one" xml:space="preserve"><value>{0:N0} sequenza</value></data>
|
||||
<data name="Shell.Status.Sequences.other" xml:space="preserve"><value>{0:N0} sequenze</value></data>
|
||||
<data name="Shell.Tray.Exit" xml:space="preserve"><value>Esci</value></data>
|
||||
<data name="Shell.Tray.KeepsSharing" xml:space="preserve"><value>Condivisione attiva</value></data>
|
||||
<data name="Shell.Tray.KeepsSharingText" xml:space="preserve"><value>Chronos continua a condividere questa libreria dall'area di notifica. Esci, lì, la interrompe.</value></data>
|
||||
<data name="Shell.Tray.Open" xml:space="preserve"><value>Apri Chronos</value></data>
|
||||
<data name="Shell.Tray.Sharing" xml:space="preserve"><value>Chronos · condivide {0}</value></data>
|
||||
<data name="Shell.Tray.Show" xml:space="preserve"><value>Mostra Chronos</value></data>
|
||||
<data name="Shell.Welcome.Adopt" xml:space="preserve"><value>Adotta una cartella esistente</value></data>
|
||||
<data name="Shell.Welcome.Change" xml:space="preserve"><value>Cambia…</value></data>
|
||||
|
||||
@@ -786,6 +786,7 @@
|
||||
<data name="Tooltips.Server.Share.CopyFingerprint" xml:space="preserve"><value>Copia l'impronta</value></data>
|
||||
<data name="Tooltips.Server.Share.CopyPassword" xml:space="preserve"><value>Copia la password temporanea</value></data>
|
||||
<data name="Tooltips.Server.Share.Fingerprint" xml:space="preserve"><value>I client vedono questa impronta la prima volta che si connettono; deve coincidere</value></data>
|
||||
<data name="Tooltips.Server.Share.LegacyService" xml:space="preserve"><value>Su questo PC è installato il servizio Windows di Chronos Server 1.0: potrebbe occupare le stesse porte. Il setup di Chronos può rimuoverlo</value></data>
|
||||
<data name="Tooltips.Server.Share.Ports" xml:space="preserve"><value>Le porte su cui ascolta la libreria condivisa</value></data>
|
||||
<data name="Tooltips.Server.Share.Restart" xml:space="preserve"><value>Riprova ad avviare la condivisione</value></data>
|
||||
<data name="Tooltips.Server.Share.Settings" xml:space="preserve"><value>Apri Impostazioni › Server per condividere questa libreria</value></data>
|
||||
@@ -1031,6 +1032,8 @@
|
||||
<data name="Tooltips.Setup.UninstallAll" xml:space="preserve"><value>Nessun programma selezionato: rimuovi l'intera installazione · il passo successivo mostra cosa viene rimosso</value></data>
|
||||
<data name="Tooltips.Setup.Update" xml:space="preserve"><value>Aggiorna sul posto i programmi installati e applica le modifiche elencate · i tuoi dati restano</value></data>
|
||||
<data name="Tooltips.Shell.CollapseRail" xml:space="preserve"><value>Riduci la navigazione alle icone · Ctrl+B</value></data>
|
||||
<data name="Tooltips.Shell.Exit.Exit" xml:space="preserve"><value>Interrompi la condivisione e chiudi Chronos; i client perdono questa libreria finché Chronos non si riavvia</value></data>
|
||||
<data name="Tooltips.Shell.Exit.Keep" xml:space="preserve"><value>Lascia Chronos attivo nell'area di notifica, a condividere questa libreria</value></data>
|
||||
<data name="Tooltips.Shell.ExpandRail" xml:space="preserve"><value>Mostra i nomi della navigazione · Ctrl+B</value></data>
|
||||
<data name="Tooltips.Shell.Homes.Logs" xml:space="preserve"><value>Mostra la cartella dei log in Esplora file: il log dice quale cartella non è stata riordinata</value></data>
|
||||
<data name="Tooltips.Shell.PauseJob" xml:space="preserve"><value>Mette in pausa l'attività mostrata; quando la riprendi continua dal punto di ripresa</value></data>
|
||||
|
||||
Reference in new issue
Block a user