Unione dell'ondata 5 (desktop M6, rifiniture M8): avvisi collegati una sola volta nella composizione condivisa per le due vesti
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Mzbb6zeFTjT6Rp8b92AVkA
This commit is contained in:
62 files changed
+4168
-327
No files matched your search
@@ -22,17 +22,17 @@ namespace Febe.Desktop.Core;
|
||||
public sealed record WebView2BrowserSettings(string ProfileDirectory, int Width, int Height, BrowserHosting Hosting, string AdditionalBrowserArguments);
|
||||
|
||||
/// <summary>
|
||||
/// What the Windows-only part of the desktop (Febe.Desktop, WPF) gives the platform: the native shell, the WebView2
|
||||
/// browser, Edge's window, the notifications, the WebView2 runtime probe. Tests on Linux pass fakes.
|
||||
/// What the Windows-only part of the desktop (Febe.Desktop, WPF) gives the platform: the native shell (with the
|
||||
/// notifications), the WebView2 browser, Edge's window, the WebView2 runtime probe. Tests on Linux pass fakes.
|
||||
/// </summary>
|
||||
public interface IDesktopShell
|
||||
{
|
||||
/// <summary>Folder picker, «Mostra nella cartella», default browser, notifications, start with the computer.</summary>
|
||||
/// <summary>
|
||||
/// Folder picker, «Mostra nella cartella», default browser, notifications, start with the computer. Its
|
||||
/// notifications are the Windows channel of the alerts (spec §13.3): the shared composition sends them through it.
|
||||
/// </summary>
|
||||
INativeShell Native { get; }
|
||||
|
||||
/// <summary>Windows notifications (balloon tips of the notification-area icon); null when there is no icon.</summary>
|
||||
IAlertChannel? Notifications { get; }
|
||||
|
||||
/// <summary>The installed WebView2 runtime; null when missing.</summary>
|
||||
string? WebView2Version();
|
||||
|
||||
@@ -147,10 +147,6 @@ public sealed class DesktopPlatform : IFebePlatform
|
||||
services.AddSingleton(_shell.Native);
|
||||
services.AddSingleton<IBrowserWindow>(new DesktopBrowserWindow(() => app.Browser));
|
||||
services.AddSingleton<IDataFolderChange>(new DesktopDataFolderChange(_locations, app.Options.DataFolder, _dataFolderFixed));
|
||||
if (_shell.Notifications is { } notifications)
|
||||
{
|
||||
services.AddSingleton(notifications);
|
||||
}
|
||||
}
|
||||
|
||||
public void RegisterProblemServices(IServiceCollection services, FebeApp app)
|
||||
|
||||
Reference in new issue
Block a user