Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove call to Application.Current.Dispatcher.CheckAccess() - seems ther... #465

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions CefSharp.Wpf/DelegateCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.

using System;
using System.Windows;
using System.Windows.Input;

namespace CefSharp.Wpf
Expand Down Expand Up @@ -35,12 +34,6 @@ public bool CanExecute(object parameter)

public void RaiseCanExecuteChanged()
{
if (!Application.Current.Dispatcher.CheckAccess())
{
Application.Current.Dispatcher.BeginInvoke((Action) RaiseCanExecuteChanged);
return;
}

if (CanExecuteChanged != null)
{
CanExecuteChanged(this, new EventArgs());
Expand Down