ui: create-chat-window opens most recent directory (#1384)
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user