Skip to content

Commit

Permalink
chat: attempt to fix windows crash
Browse files Browse the repository at this point in the history
  • Loading branch information
rmackay9 committed Dec 12, 2023
1 parent fc28a63 commit 09d3ef6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion MAVProxy/modules/mavproxy_chat/chat_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Chat window for input and output of AI chat
'''

from MAVProxy.modules.lib import multiproc
from MAVProxy.modules.lib import mp_util, multiproc
from MAVProxy.modules.lib.wx_loader import wx
from MAVProxy.modules.mavproxy_chat import chat_openai, chat_voice_to_text
from threading import Thread, Lock
Expand All @@ -23,6 +23,7 @@ def __init__(self, mpstate):

def child_task(self):
'''child process - this holds all the GUI elements'''
mp_util.child_close_fds()
self.app = wx.App()
self.frame = wx.Frame(None, title="Chat", size=(650, 200))

Expand Down

0 comments on commit 09d3ef6

Please sign in to comment.