mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-04 21:32:39 +02:00
fix: don't clear pendingText on read to survive auth remount
This commit is contained in:
parent
af2129ebb6
commit
f9a6e648cf
1 changed files with 1 additions and 3 deletions
|
|
@ -99,9 +99,7 @@ export function registerQuickAsk(): void {
|
||||||
}
|
}
|
||||||
|
|
||||||
ipcMain.handle(IPC_CHANNELS.QUICK_ASK_TEXT, () => {
|
ipcMain.handle(IPC_CHANNELS.QUICK_ASK_TEXT, () => {
|
||||||
const text = pendingText;
|
return pendingText;
|
||||||
pendingText = '';
|
|
||||||
return text;
|
|
||||||
});
|
});
|
||||||
|
|
||||||
ipcMain.handle(IPC_CHANNELS.REPLACE_TEXT, async (_event, text: string) => {
|
ipcMain.handle(IPC_CHANNELS.REPLACE_TEXT, async (_event, text: string) => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue