MCPcopy Create free account
hub / github.com/dail8859/NotepadNext / storeUnsavedFileDetails

Method storeUnsavedFileDetails

src/SessionManager.cpp:282–293  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

280}
281
282void SessionManager::storeUnsavedFileDetails(ScintillaNext *editor, QSettings &settings)
283{
284 const QString sessionFileName = RandomSessionFileName();
285
286 settings.setValue("Type", "UnsavedFile");
287 settings.setValue("FilePath", editor->getFilePath());
288 settings.setValue("SessionFileName", sessionFileName);
289
290 storeEditorViewDetails(editor, settings);
291
292 saveIntoSessionDirectory(editor, sessionFileName);
293}
294
295ScintillaNext *SessionManager::loadUnsavedFileDetails(QSettings &settings)
296{

Callers

nothing calls this directly

Calls 2

RandomSessionFileNameFunction · 0.85
getFilePathMethod · 0.80

Tested by

no test coverage detected