MCPcopy Create free account
hub / github.com/baumgarr/nixnote2 / disableEditing

Method disableEditing

nixnote.cpp:2516–2526  ·  view source on GitHub ↗

Temporarily disable all note editing

Source from the content-addressed store, hash-verified

2514//* Temporarily disable all note editing
2515//**************************************************
2516void NixNote::disableEditing() {
2517 global.disableEditing = !global.disableEditing;
2518 for (int i=0; i<tabWindow->browserList->size(); i++) {
2519 NBrowserWindow *browser = tabWindow->browserList->at(i);
2520 browser->setReadOnly(global.disableEditing && browser->isReadOnly);
2521 }
2522 for (int i=0; i<tabWindow->externalList->size(); i++) {
2523 NBrowserWindow *browser = tabWindow->externalList->at(i)->browser;
2524 browser->setReadOnly(global.disableEditing && browser->isReadOnly);
2525 }
2526}
2527
2528
2529

Callers

nothing calls this directly

Calls 1

setReadOnlyMethod · 0.80

Tested by

no test coverage detected