Rename pull-out tab to 'Stream Settings'; right-click Start Stream → Change Account / Logout
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user