mirror of
https://github.com/haven1433/HexManiacAdvance.git
synced 2026-05-15 00:30:23 -05:00
dispatch undo refresh
needs to happen on the foreground thread, doesn't need to happen right away
This commit is contained in:
parent
7e215acfa4
commit
caececfc2f
|
|
@ -530,7 +530,7 @@ namespace HavenSoft.HexManiac.Core.ViewModels {
|
|||
{ tab => tab.SaveAs, (sender, e) => saveAs.CanExecuteChanged.Invoke(this, e) },
|
||||
{ tab => tab.ExportBackup, (sender, e) => exportBackup.CanExecuteChanged.Invoke(this, e) },
|
||||
{ tab => tab.Close, (sender, e) => close.CanExecuteChanged.Invoke(this, e) },
|
||||
{ tab => tab.Undo, (sender, e) => undo.CanExecuteChanged.Invoke(this, e) },
|
||||
{ tab => tab.Undo, (sender, e) => workDispatcher.DispatchWork(() => undo.CanExecuteChanged.Invoke(this, e)) }, // refreshing undo from the background thread isn't allowed
|
||||
{ tab => tab.Redo, (sender, e) => redo.CanExecuteChanged.Invoke(this, e) },
|
||||
{ tab => tab.Back, (sender, e) => back.CanExecuteChanged.Invoke(this, e) },
|
||||
{ tab => tab.Forward, (sender, e) => forward.CanExecuteChanged.Invoke(this, e) },
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user