Fixed: code blocks shouldn't be editable

This commit is contained in:
jeffser 2024-05-18 19:48:43 -06:00
parent 2725928363
commit 625bcb3f1f

View File

@ -271,6 +271,7 @@ class AlpacaWindow(Adw.ApplicationWindow):
source_view = GtkSource.View(
auto_indent=True, indent_width=4, buffer=buffer, show_line_numbers=True
)
source_view.set_editable(False)
source_view.get_style_context().add_class("card")
self.bot_message_box.append(source_view)
self.bot_message = None