542 } |
542 } |
543 |
543 |
544 // ============================================================================= |
544 // ============================================================================= |
545 // ----------------------------------------------------------------------------- |
545 // ----------------------------------------------------------------------------- |
546 void addRecentFile (str path) |
546 void addRecentFile (str path) |
547 { auto& rfiles = io_recentfiles.value; |
547 { auto& rfiles = io_recentfiles; |
548 int idx = rfiles.indexOf (path); |
548 int idx = rfiles.indexOf (path); |
549 |
549 |
550 // If this file already is in the list, pop it out. |
550 // If this file already is in the list, pop it out. |
551 if (idx != -1) |
551 if (idx != -1) |
552 { if (rfiles.size() == 1) |
552 { if (rfiles.size() == 1) |