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

Method pinNote

gui/ntableview.cpp:1454–1468  ·  view source on GitHub ↗

Pin notes

Source from the content-addressed store, hash-verified

1452
1453// Pin notes
1454void NTableView::pinNote() {
1455 QList<qint32> lids;
1456 ConfigStore cs(global.db);
1457 getSelectedLids(lids);
1458 if (lids.size() == 0)
1459 return;
1460
1461 NoteTable noteTable(global.db);
1462 for (int i=0; i<lids.size(); i++) {
1463 noteTable.pinNote(lids[i], true);
1464 }
1465 FilterEngine engine;
1466 engine.filter();
1467 refreshData();
1468}
1469
1470
1471// Unpin notes

Callers 1

unpinNoteMethod · 0.45

Calls 1

filterMethod · 0.80

Tested by

no test coverage detected