Rename pull-out tab to 'Stream Settings'; right-click Start Stream → Change Account / Logout

This commit is contained in:
2026-08-26 09:35:07 -07:00
parent d4aa5e1003
commit 67baac6fdd
2 changed files with 21 additions and 3 deletions
+10
View File
@@ -1526,6 +1526,8 @@ public class MainViewModel : ViewModelBase
public ICommand ActivateLicenseCommand { get; }
public ICommand OpenLicenseEntryCommand { get; }
public ICommand OpenHotkeyConfigCommand { get; }
public ICommand ChangeAccountCommand { get; }
public ICommand LogoutCommand { get; }
public MainViewModel()
{
@@ -1600,6 +1602,8 @@ public class MainViewModel : ViewModelBase
ActivateLicenseCommand = new RelayCommand(_ => _ = ActivateLicenseAsync(), _ => !IsLicenseValidating);
OpenLicenseEntryCommand = new RelayCommand(_ => IsLicenseEntryOpen = !IsLicenseEntryOpen);
OpenHotkeyConfigCommand = new RelayCommand(_ => OpenHotkeyConfig());
ChangeAccountCommand = new RelayCommand(_ => _ = ChangeAccountAsync());
LogoutCommand = new RelayCommand(_ => _ = SignOutYouTubeAsync());
_layoutStore = new LayoutStore(LayoutPathOverride ?? DefaultLayoutPath);
_activeLayoutPath = _layoutStore.ActivePath;
@@ -3591,4 +3595,10 @@ public class MainViewModel : ViewModelBase
AppLog.Write("Socials: signed out of YouTube");
await Task.CompletedTask;
}
private async Task ChangeAccountAsync()
{
await SignOutYouTubeAsync();
await SignInAsync();
}
}