MCPcopy Create free account
hub / github.com/SpartanJ/eepp / tryUpdateEditorTitle

Method tryUpdateEditorTitle

src/tools/uieditor/uieditor.cpp:1426–1432  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1424}
1425
1426void App::tryUpdateEditorTitle( UICodeEditor* editor ) {
1427 bool isDirty = editor->getDocument().isDirty();
1428 bool tabDirty = ( (UITab*)editor->getData() )->getText().lastChar() == '*';
1429
1430 if ( isDirty != tabDirty )
1431 updateEditorTitle( editor );
1432}
1433
1434void App::onDocumentSelectionChange( UICodeEditor* editor, TextDocument& ) {
1435 tryUpdateEditorTitle( editor );

Callers

nothing calls this directly

Calls 5

getDocumentMethod · 0.80
lastCharMethod · 0.80
isDirtyMethod · 0.45
getTextMethod · 0.45
getDataMethod · 0.45

Tested by

no test coverage detected