Flow.Launcher/Flow.Launcher.Avalonia/ViewModel/SettingPages/AboutSettingsViewModel.cs
Hongtao Zhang 0f9b9329dd Add hotkey recorder with manual modifier tracking
- Add HotkeyRecorderDialog with global keyboard hook for capturing hotkeys
- Implement manual modifier state tracking to handle swallowed key events
- Add HotkeyControl button that opens the recorder dialog
- Add CheckAvailability and RemoveToggleHotkey to HotKeyMapper
- Expose GetKeyFromVk helper in GlobalHotkey infrastructure
- Add Settings pages (General, Plugin, Theme, Proxy, About)
- Add PreviewPanel for result previews in main window
- Fix hook reuse issue by clearing callback on close instead of disposing
2026-01-18 02:10:53 -08:00

28 lines
849 B
C#

using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.Input;
using Flow.Launcher.Infrastructure;
using System.Diagnostics;
using System.Threading.Tasks;
namespace Flow.Launcher.Avalonia.ViewModel.SettingPages;
public partial class AboutSettingsViewModel : ObservableObject
{
public string Version => Constant.Version;
public string Website => "https://www.flowlauncher.com";
public string GitHub => "https://github.com/Flow-Launcher/Flow.Launcher";
[RelayCommand]
private async Task OpenWebsite()
{
Process.Start(new ProcessStartInfo(Website) { UseShellExecute = true });
await Task.CompletedTask;
}
[RelayCommand]
private async Task OpenGitHub()
{
Process.Start(new ProcessStartInfo(GitHub) { UseShellExecute = true });
await Task.CompletedTask;
}
}