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

Method unpinNote

gui/ntableview.cpp:1472–1486  ·  view source on GitHub ↗

Unpin notes

Source from the content-addressed store, hash-verified

1470
1471// Unpin notes
1472void NTableView::unpinNote() {
1473 QList<qint32> lids;
1474 ConfigStore cs(global.db);
1475 getSelectedLids(lids);
1476 if (lids.size() == 0)
1477 return;
1478
1479 NoteTable noteTable(global.db);
1480 for (int i=0; i<lids.size(); i++) {
1481 noteTable.pinNote(lids[i], false);
1482 }
1483 FilterEngine engine;
1484 engine.filter();
1485 refreshData();
1486}
1487
1488
1489// Drag a note event. Determine if dragging is even possible

Callers

nothing calls this directly

Calls 2

filterMethod · 0.80
pinNoteMethod · 0.45

Tested by

no test coverage detected