1
0
mirror of https://github.com/bec-project/bec_widgets.git synced 2026-03-05 00:12:49 +01:00

docs(monaco_dock): add missing argument

This commit is contained in:
2025-10-30 16:28:48 +01:00
committed by Klaus Wakonig
parent 96e7ca34ab
commit 4284d572ec

View File

@@ -295,6 +295,7 @@ class MonacoDock(BECWidget, QWidget):
Args:
widget (MonacoWidget | None): The widget to save. If None, the last focused editor will be used.
force_save_as (bool): If True, the "Save As" dialog will be shown even if the file is already saved.
format_on_save (bool): If True, format the code before saving if it's a Python file.
"""
if widget is None:
widget = self.last_focused_editor.widget() if self.last_focused_editor else None