Push reopened recent files to the top of the list.
This commit is contained in:
parent
121fd9929d
commit
a58ea0775b
@ -492,7 +492,7 @@ class MCEditApp(QtGui.QApplication):
|
||||
def addRecentFile(self, filename):
|
||||
recentFiles = RecentFilesSetting.value()
|
||||
if filename in recentFiles:
|
||||
return
|
||||
recentFiles.remove(filename)
|
||||
recentFiles.insert(0, filename)
|
||||
if len(recentFiles) > self.recentFileLimit:
|
||||
recentFiles = recentFiles[:-1]
|
||||
|
Reference in New Issue
Block a user