Adds user notification for ongoing timed prompts
Prevents multiple simultaneous timed prompt generations by displaying a notice when an operation is already in progress Improves user experience by providing clear feedback during concurrent prompt generation attempts
This commit is contained in:
1 file changed
+1
@@ -18,6 +18,7 @@ export class TimedPromptsCommand {
|
|||||||
async execute(settings: FreewritingPromptsSettings): Promise<void> {
|
async execute(settings: FreewritingPromptsSettings): Promise<void> {
|
||||||
// Check if already in progress to prevent race conditions
|
// Check if already in progress to prevent race conditions
|
||||||
if (this.inProgress) {
|
if (this.inProgress) {
|
||||||
|
new Notice('Timed prompts are already being generated. Please wait.');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user