/
githubmirror
/
PowerToys
Обзор
Документация
Войти
/
githubmirror
/
PowerToys
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/settings-ui/QuickAccess.UI/Services/QuickAccessLauncher.cs
45 строк
1 KB
Zach Teutsch
[Keyboard Manager] Updated WinUI3 KBM and toggles (#45649)
04 мар 2026, 23:46
Не верифицирован
04 мар 2026, 23:46
f651d1a
Код
Авторство
О чём код?
// Copyright (c) Microsoft Corporation // The Microsoft Corporation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System.Threading; using ManagedCommon; using Microsoft.PowerToys.Settings.UI.Controls; using Microsoft.PowerToys.Settings.UI.Library; using Microsoft.PowerToys.Settings.UI.Library.Telemetry.Events; using Microsoft.PowerToys.Telemetry; using PowerToys.Interop; namespace Microsoft.PowerToys.QuickAccess.Services { public class QuickAccessLauncher : Microsoft.PowerToys.Settings.UI.Controls.QuickAccessLauncher { private readonly IQuickAccessCoordinator? _coordinator; public QuickAccessLauncher(IQuickAccessCoordinator? coordinator) : base(coordinator?.IsRunnerElevated ?? false) { _coordinator = coordinator; } public override bool Launch(ModuleType moduleType) { bool moduleRun = base.Launch(moduleType); if (moduleRun) { _coordinator?.OnModuleLaunched(moduleType); // Send telemetry event for module launch from Quick Access if (moduleType == ModuleType.KeyboardManager) { PowerToysTelemetry.Log.WriteEvent(new ModuleLaunchedFromSettingsEvent("KeyboardManagerWinUI")); } } _coordinator?.HideFlyout(); return moduleRun; } } }