fix: platform specific init

This commit is contained in:
tux
2025-07-05 18:30:05 +05:30
parent e0f1c54dee
commit 3c01781503
2 changed files with 17 additions and 6 deletions

View File

@@ -1,13 +1,21 @@
using CommunityToolkit.Mvvm.ComponentModel;
using System;
using CommunityToolkit.Mvvm.ComponentModel;
namespace highminded.models;
public partial class MainViewModel : ObservableObject
{
[ObservableProperty] private string _appName = "High Minded";
[ObservableProperty] private string _hideShortcutKey = "ALT + SHIFT + \\";
[ObservableProperty] private string _screenshotShortcutKey = "ALT + SHIFT + S";
[ObservableProperty] private string _audioShortcutKey = "ALT + SHIFT + A";
[ObservableProperty]
private string _hideShortcutKey = OperatingSystem.IsMacOS() ? "OPTION + SHIFT + \\" : "ALT + SHIFT + \\";
[ObservableProperty] private string _screenshotShortcutKey =
OperatingSystem.IsMacOS() ? "OPTION + SHIFT + S" : "ALT + SHIFT + S";
[ObservableProperty]
private string _audioShortcutKey = OperatingSystem.IsMacOS() ? "OPTION + SHIFT + A" : "ALT + SHIFT + A";
[ObservableProperty] private bool _isRecording = false;
[ObservableProperty] private bool _isHidden = true;
}