MCPcopy Create free account
hub / github.com/assimp/assimp / ClearHistory

Function ClearHistory

tools/assimp_view/MessageProc.cpp:779–790  ·  view source on GitHub ↗

------------------------------------------------------------------------------- Clear the file history -------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

777// Clear the file history
778//-------------------------------------------------------------------------------
779void ClearHistory() {
780 for (unsigned int i = 0; i < AI_VIEW_NUM_RECENT_FILES; ++i) {
781 g_aPreviousFiles[i] = std::string("");
782 }
783
784 for (int i = AI_VIEW_NUM_RECENT_FILES-1; i >= 0;--i) {
785 ModifyMenu(g_hHistoryMenu,AI_VIEW_RECENT_FILE_ID(i),
786 MF_STRING | MF_BYCOMMAND | MF_GRAYED | MF_DISABLED,AI_VIEW_RECENT_FILE_ID(i),"<empty>");
787 }
788
789 SaveHistory();
790}
791
792//-------------------------------------------------------------------------------
793// Update the file history

Callers 1

MessageProcFunction · 0.85

Calls 1

SaveHistoryFunction · 0.85

Tested by

no test coverage detected