File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
TuneLab/UI/MainWindow/Editor Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -745,7 +745,7 @@ Menu CreateMenu()
745745 {
746746 var mRecentFilesMenuItem = new MenuItem ( ) . SetName ( mRecentFile . FileName ) . SetAction ( ( ) =>
747747 {
748- OpenProjectByPath ( mRecentFile . FilePath ) ;
748+ SwitchProjectSafely ( ( ) => OpenProjectByPath ( mRecentFile . FilePath ) ) ;
749749 Menu . Close ( ) ;
750750 } ) ;
751751 menuItem . Items . Add ( mRecentFilesMenuItem ) ;
@@ -929,7 +929,7 @@ private void UpdateRecentFilesMenu()
929929 mRecentFilesMenu . Items . Clear ( ) ;
930930 foreach ( var mRecentFile in RecentFilesManager . GetRecentFiles ( ) )
931931 {
932- var menuItem = new MenuItem ( ) . SetName ( mRecentFile . FileName ) . SetAction ( ( ) => OpenProjectByPath ( mRecentFile . FilePath ) ) ;
932+ var menuItem = new MenuItem ( ) . SetName ( mRecentFile . FileName ) . SetAction ( ( ) => SwitchProjectSafely ( ( ) => OpenProjectByPath ( mRecentFile . FilePath ) ) ) ;
933933 mRecentFilesMenu . Items . Add ( menuItem ) ;
934934 }
935935 }
You can’t perform that action at this time.
0 commit comments