-
-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor MainWindow closing logic and add async save
Refactored the MainWindow closing logic to support asynchronous operations. Updated `SentClearMessage` in `OSCSender.cs` to accept a delay parameter. Replaced `SaveDataToDisk` with an asynchronous version `MainWindow_ClosingAsync` in `MainWindow.xaml.cs`, which temporarily cancels the window closing event to await async tasks. Added a new method `SaveDataToDiskAsync` for async save operations and included exception handling in both async methods.
- Loading branch information
Showing
2 changed files
with
31 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters