Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add confirm on close for editors #262

Open
icewolfz opened this issue May 14, 2024 · 2 comments
Open

Add confirm on close for editors #262

icewolfz opened this issue May 14, 2024 · 2 comments
Labels
enhancement A new feature or way to improve a current feature to make it better or offer more uses wishlist Wanted but not required

Comments

@icewolfz
Copy link
Owner

Add a confirm dialog on close when advanced editor or compose main windows are closed to ensure data is not lost

maybe some options:
Remember unsent composed mail - Save any text until sent even when window closed
Remember unsent advanced editor - Save any test for advanced editor when window closed, this will require checking opener as the code editor uses the editor window as well

@icewolfz icewolfz added enhancement A new feature or way to improve a current feature to make it better or offer more uses wishlist Wanted but not required labels May 14, 2024
@icewolfz
Copy link
Owner Author

The saved text would be best saved to a data file due to size of text as would be a pain to load the text every time if never used so something like DATA\mail.json and aedit.tmp or something

the mail should be a json as it needs to save also the 3 fields in format of:

{
   "subject":"",
   "to":"",
   "cc":"",
   "body":""
}

@icewolfz
Copy link
Owner Author

icewolfz commented May 17, 2024

Will need to do it per character so default/global use compose.json/adv.txt
and for each character save as {characters}\ID.compose and ID.adv this way its saved per character global depending how they are using the client, this will also require extending the character manager to move/copy the data and maybe a button to clear it will not worry about allowing users to pick the file as its ment to be a temp holder of data to restore state not a config file

maybe add an option to reset/clear them in the prefs granted can just open advanced editor or composer and edit the data manually

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement A new feature or way to improve a current feature to make it better or offer more uses wishlist Wanted but not required
Projects
None yet
Development

No branches or pull requests

1 participant