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
parent 30ef26afa0
commit 645c941b0b

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()