MCPcopy Create free account
hub / github.com/MrNeRF/LichtFeld-Studio / setReadOnly

Method setReadOnly

src/visualizer/gui/editor/python_editor.cpp:3563–3571  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3561 }
3562
3563 void PythonEditor::setReadOnly(bool readonly) {
3564 impl_->read_only = readonly;
3565 if (impl_->buffer != nullptr) {
3566 impl_->buffer->SetFileFlags(Zep::FileFlags::ReadOnly, readonly);
3567 }
3568 if (readonly) {
3569 impl_->completion.clear();
3570 }
3571 }
3572
3573 bool PythonEditor::isReadOnly() const {
3574 return impl_->read_only;

Callers 1

DrawDockedPythonConsoleFunction · 0.45

Calls 2

SetFileFlagsMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected