private void OnThemeAdded(object sender, TerminalTheme e) { _applicationView.RunOnDispatcherThread(() => { TerminalThemes.Add(e); }); }
private async void OnTerminalOptionsChanged(object sender, TerminalOptions e) { await _applicationView.RunOnDispatcherThread(() => { BackgroundOpacity = e.BackgroundOpacity; }); }
private async void OnKeyBindingsChanged(object sender, EventArgs e) { var keyBindings = _settingsService.GetKeyBindings(); await _applicationView.RunOnDispatcherThread(async() => { await _terminalView.ChangeKeyBindings(FlattenKeyBindings(keyBindings)).ConfigureAwait(false); }); }