Compare commits
3
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4e154bcaa7 | ||
|
|
ea784384c1 | ||
|
|
4e813995c9 |
@@ -14,7 +14,7 @@ public partial class PopupWindow : Window
|
||||
private static readonly UsageViewModel VM = App.ViewModel;
|
||||
private static readonly UpdateManager Updater = App.Updater;
|
||||
private readonly DispatcherTimer _clockTimer;
|
||||
private bool _dialogOpen;
|
||||
|
||||
|
||||
[DllImport("dwmapi.dll")]
|
||||
private static extern int DwmSetWindowAttribute(IntPtr hwnd, int attr, ref int value, int size);
|
||||
@@ -312,14 +312,12 @@ public partial class PopupWindow : Window
|
||||
|
||||
private async void SignIn_Click(object s, RoutedEventArgs e)
|
||||
{
|
||||
_dialogOpen = true;
|
||||
var login = new LoginWindow { Owner = this };
|
||||
if (login.ShowDialog() == true)
|
||||
{
|
||||
await VM.RefreshAsync();
|
||||
InitSettings();
|
||||
}
|
||||
_dialogOpen = false;
|
||||
Show();
|
||||
Activate();
|
||||
}
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
## What's new in beta.21
|
||||
## What's new in beta.22
|
||||
|
||||
- Fixed: clicking Sign In now auto-closes as soon as you are detected as signed in (no need to click Done)
|
||||
- Fixed: login now fetches and caches your data directly via the browser session (no more authentication failures)
|
||||
- Fixed: periodic refresh falls back to browser-session API calls when HttpClient is rejected
|
||||
- Fixed: cached usage from login is shown immediately while refreshing
|
||||
- Fixed build error: Task unwrap for Dispatcher.InvokeAsync with async lambda
|
||||
- Removed unused field warning
|
||||
|
||||
@@ -212,7 +212,7 @@ public class UsageViewModel : INotifyPropertyChanged
|
||||
host.Show();
|
||||
try { return await host.FetchAsync("https://claude.ai", script); }
|
||||
finally { host.Close(); }
|
||||
}).Task;
|
||||
}).Task.Unwrap();
|
||||
|
||||
if (resultJson == null || resultJson == "null") return ([], null, null);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user