@@ -2294,18 +2294,20 @@ def load_recent_menu(self):
2294
2294
self .recent_menu .clear ()
2295
2295
2296
2296
# Add recent projects to menu
2297
- if recent_projects :
2298
- for file_path in reversed (recent_projects ):
2299
- # Add each recent project
2300
- new_action = self .recent_menu .addAction (file_path )
2301
- new_action .triggered .connect (functools .partial (self .recent_project_clicked , file_path ))
2302
-
2303
- # Add 'Clear Recent Projects' menu to bottom of list
2304
- self .recent_menu .addSeparator ()
2305
- self .recent_menu .addAction (self .actionClearRecents )
2306
- self .actionClearRecents .triggered .connect (self .clear_recents_clicked )
2307
- else :
2297
+ # Show just a placeholder menu, if we have no recent projects list
2298
+ if not recent_projects :
2308
2299
self .recent_menu .addAction (_ ("No Recent Projects" ))
2300
+ return
2301
+
2302
+ for file_path in reversed (recent_projects ):
2303
+ # Add each recent project
2304
+ new_action = self .recent_menu .addAction (file_path )
2305
+ new_action .triggered .connect (functools .partial (self .recent_project_clicked , file_path ))
2306
+
2307
+ # Add 'Clear Recent Projects' menu to bottom of list
2308
+ self .recent_menu .addSeparator ()
2309
+ self .recent_menu .addAction (self .actionClearRecents )
2310
+ self .actionClearRecents .triggered .connect (self .clear_recents_clicked )
2309
2311
2310
2312
def remove_recent_project (self , file_path ):
2311
2313
"""Remove a project from the Recent menu if OpenShot can't find it"""
0 commit comments