mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-11 01:32:08 +10:00
retain chat history when saving to a new file name
This commit is contained in:
@@ -64,7 +64,7 @@ public class ChatbotPane extends JPanel {
|
||||
super();
|
||||
this.swingUI = swingUI;
|
||||
this.plugInPort = plugInPort;
|
||||
this.chatbotService = new ChatbotService(plugInPort);
|
||||
this.chatbotService = plugInPort.getChatbotService();
|
||||
setName("AI Assistant");
|
||||
|
||||
// Set panel background color
|
||||
|
||||
@@ -58,8 +58,6 @@ public class ChatbotPlugin implements IPlugIn {
|
||||
switch (eventType) {
|
||||
case FILE_STATUS_CHANGED:
|
||||
case PROJECT_LOADED:
|
||||
getChatbotPane().refreshChat(null);
|
||||
break;
|
||||
case CLOUD_LOGGED_IN:
|
||||
case CLOUD_LOGGED_OUT:
|
||||
SubscriptionEntity subscriptionInfo = null;
|
||||
|
||||
Reference in New Issue
Block a user