ui: create-chat-window opens most recent directory (#1384)

This commit is contained in:
Vincent H.
2025-02-27 10:43:59 -08:00
committed by GitHub
parent cc78763762
commit a5ff6b850b
+4
View File
@@ -530,6 +530,10 @@ app.whenReady().then(async () => {
});
ipcMain.on('create-chat-window', (_, query, dir, version) => {
if (!dir?.trim()) {
const recentDirs = loadRecentDirs();
dir = recentDirs.length > 0 ? recentDirs[0] : null;
}
createChat(app, query, dir, version);
});