Skip to content
Discussion options

You must be logged in to vote

That looks like it should work. When I remove the calls to EncryptFile and replace them with static strings it seems to work ok (see below).

One thing I would try is get rid of the async on SaveFileAsync and getting rid of all calls to await. If that fixes the problem and threading (async) is needed you will need to use Application.MainLoop.Invoke as I described above when making updates to UI elements.

using System.Text;
using Terminal.Gui;


Application.Init();
- FileHelpers.CurrentFile = DateTime.Now.ToShortDateString().Replace("/", "-");
Application.Run<MainWindow>();
public sealed class MainWindow : Window
{
    private readonly TextView _textArea = new()
    {
        Y = 1,
      …

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@HoofedEar
Comment options

@tznind
Comment options

tznind May 2, 2023
Collaborator

Answer selected by HoofedEar
@HoofedEar
Comment options

@tznind
Comment options

tznind May 2, 2023
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants