dodexahedron / Terminal.Gui

Cross Platform Terminal UI toolkit for .NET
MIT License
1 stars 0 forks source link

FileDialog Fixes #14

Open dodexahedron opened 9 months ago

dodexahedron commented 9 months ago

Part of the code in question, in FileDialog.cs:

void UpdateChildren ( ) {
  lock ( Parent._onlyOneSearchLock ) {
    while ( !_cancel && !_finished ) {
      try {
        Task.Delay ( 250 ).Wait ( _token.Token );
      }
      catch ( OperationCanceledException ) {
        _cancel = true;
      }

      if ( _cancel || _finished ) {
        break;
      }

      UpdateChildrenToFound ( );
    }

    if ( _finished && !_cancel ) {
      UpdateChildrenToFound ( );
    }

    Application.Invoke ( ( ) => { Parent._spinnerView.Visible = false; } );
  }
}

Problems:

And more, but I'm done for now and want to actually get some work done.