Do not throw error when open an already opened document

This commit is contained in:
Zheng, Lei
2020-01-07 08:53:44 +08:00
committed by Yorik van Havre
parent fb036960ba
commit 10e7b3e80e
5 changed files with 81 additions and 16 deletions

View File

@@ -20,10 +20,10 @@
#* *
#***************************************************************************
import FreeCAD,sys
import FreeCADGui,sys
# MRU will be given before this script is run
rf=FreeCAD.ParamGet("User parameter:BaseApp/Preferences/RecentFiles")
FreeCAD.loadFile(rf.GetString("MRU"+str(MRU)))
FreeCADGui.loadFile(rf.GetString("MRU"+str(MRU)))
from StartPage import StartPage
StartPage.postStart()