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
@@ -5,6 +5,10 @@
|
||||
<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.AppName" xml:space="preserve"><value>Chronos</value><comment>invariant</comment></data>
|
||||
<data name="Shell.Exit.Heading" xml:space="preserve"><value>Stop sharing?</value></data>
|
||||
<data name="Shell.Exit.Keep" xml:space="preserve"><value>Keep sharing</value></data>
|
||||
<data name="Shell.Exit.Message.one" xml:space="preserve"><value>{0} client used this library in the last minutes. Exiting Chronos stops sharing it.</value><comment>long; {0} count; confirmation under Stop sharing?</comment></data>
|
||||
<data name="Shell.Exit.Message.other" xml:space="preserve"><value>{0} clients used this library in the last minutes. Exiting Chronos stops sharing it.</value><comment>long; {0} count; confirmation under Stop sharing?</comment></data>
|
||||
<data name="Shell.Homes.Clash" xml:space="preserve"><value>Server ID clash</value></data>
|
||||
<data name="Shell.Homes.Moved.one" xml:space="preserve"><value>{0} project moved</value><comment>{0} count</comment></data>
|
||||
<data name="Shell.Homes.Moved.other" xml:space="preserve"><value>{0} projects moved</value><comment>{0} count</comment></data>
|
||||
@@ -40,6 +44,11 @@
|
||||
<data name="Shell.Status.Photos.other" xml:space="preserve"><value>{0:N0} photos</value></data>
|
||||
<data name="Shell.Status.Sequences.one" xml:space="preserve"><value>{0:N0} sequence</value></data>
|
||||
<data name="Shell.Status.Sequences.other" xml:space="preserve"><value>{0:N0} sequences</value></data>
|
||||
<data name="Shell.Tray.Exit" xml:space="preserve"><value>Exit</value></data>
|
||||
<data name="Shell.Tray.KeepsSharing" xml:space="preserve"><value>Still sharing</value></data>
|
||||
<data name="Shell.Tray.KeepsSharingText" xml:space="preserve"><value>Chronos keeps sharing this library from the notification area. Exit there stops it.</value><comment>long; Windows notification under Still sharing</comment></data>
|
||||
<data name="Shell.Tray.Open" xml:space="preserve"><value>Open Chronos</value></data>
|
||||
<data name="Shell.Tray.Sharing" xml:space="preserve"><value>Chronos · sharing {0}</value><comment>tray tooltip; {0} the library's name</comment></data>
|
||||
<data name="Shell.Tray.Show" xml:space="preserve"><value>Show Chronos</value></data>
|
||||
<data name="Shell.Welcome.Adopt" xml:space="preserve"><value>Adopt an existing folder</value></data>
|
||||
<data name="Shell.Welcome.Change" xml:space="preserve"><value>Change…</value></data>
|
||||
|
||||
Reference in new issue
Block a user