Skip to content

Improve various aspects of the Chat Window#29

Merged
fortenforge merged 2 commits intoExafunction:mainfrom
thedemons:improve-chat
Dec 15, 2023
Merged

Improve various aspects of the Chat Window#29
fortenforge merged 2 commits intoExafunction:mainfrom
thedemons:improve-chat

Conversation

@thedemons
Copy link
Contributor

@thedemons thedemons commented Dec 14, 2023

  • The SetChatThemeAsync function was previously unreliable, occasionally failing to apply the theme. To improve reliability, the function now uses AddScriptToExecuteOnDocumentCreatedAsync to add the set-theme script to a list of scripts that are executed upon document load.
  • During the chat page loading process, a 10-second timeout has been added to verify if the page has loaded. If not, the user is notified and asked whether they wish to reload the chat.
  • As the webview2 operates as a separate HWND, clicking on it does not activate the ToolWindowPane (indicated by a purple strip on the title). This issue has been addressed by manually activating it during the GotFocus event. Additionally, the text input is now automatically focused for user convenience.

Also fixed a bug made in #25

@fortenforge fortenforge merged commit 3bd95df into Exafunction:main Dec 15, 2023
@thedemons thedemons deleted the improve-chat branch December 15, 2023 04:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants