feat: Windows app (WPF + WebView2) #1

Open
superdooper86 wants to merge 196 commits from feature/windows-app into main
Showing only changes of commit 58a09e8701 - Show all commits
-10
View File
@@ -78,21 +78,11 @@ public partial class App : Application
if (_popup == null)
{
_popup = new PopupWindow();
_popup.Closed += (_, _) => _popup = null;
}
PositionPopup();
_popup.Show();
_popup.Activate();
}
private void PositionPopup()
{
if (_popup == null) return;
var workArea = SystemParameters.WorkArea;
_popup.Left = workArea.Right - _popup.Width - 8;
_popup.Top = workArea.Bottom - _popup.Height - 8;
}
public void ScheduleTimer(int seconds)
{
_timer?.Stop();