Add advanced generation options with Explicit and Smart modes
- Implemented `AdvancedGenerationOptions` component for toggling Explicit and Smart modes with confirmation dialogs. - Integrated generation options into `GhostWriter`, `DraftCompanion`, and `ShortStoryGenerator`. - Introduced `ToggleWithConfirmation` component for user interaction with alerts. - Updated `InputField` to support centered alignment for better layout flexibility. - Localized Explicit and Smart mode strings in English and French. - Enhanced content preview logic to filter placeholder text before display. - Added `autoUpdater` initialization checks and refactored updater setup for improved reliability.
This commit is contained in:
@@ -87,6 +87,9 @@ function createLoginWindow(): void {
|
||||
|
||||
loginWindow.once('ready-to-show', () => {
|
||||
loginWindow?.show();
|
||||
if (loginWindow) {
|
||||
initAutoUpdater(loginWindow);
|
||||
}
|
||||
});
|
||||
|
||||
loginWindow.on('closed', () => {
|
||||
@@ -145,7 +148,9 @@ function createMainWindow(): void {
|
||||
|
||||
mainWindow.once('ready-to-show', () => {
|
||||
mainWindow?.show();
|
||||
initAutoUpdater(mainWindow);
|
||||
if (mainWindow) {
|
||||
initAutoUpdater(mainWindow);
|
||||
}
|
||||
});
|
||||
|
||||
mainWindow.on('closed', () => {
|
||||
|
||||
Reference in New Issue
Block a user