recentHelper.py: Don't try to modify the recent list unless recents

are enabled.

This was throwing an error when launching a program with the recent
plugin disabled.
This commit is contained in:
Michael Webster 2020-06-17 10:46:27 -04:00 committed by Clement Lefebvre
parent d7f650b79f
commit 3e863c8b74

View File

@ -115,6 +115,10 @@ def doRecentApps():
def applicationButtonClicked(widget): def applicationButtonClicked(widget):
mintMenuWin.hide() mintMenuWin.hide()
if settings == None:
return
recentAppsAdd(widget) recentAppsAdd(widget)
recentAppsSave() recentAppsSave()
doRecentApps() doRecentApps()