No need to search for the settings dialog when closing via keybind.

This commit is contained in:
Nicolas Stepien 2013-04-17 00:14:49 +02:00
parent aebf540551
commit 94f29bc495

View File

@ -1848,7 +1848,7 @@ Keybinds =
when Conf['Open settings']
Settings.open()
when Conf['Close']
if $.id 'fourchanx-settings'
if Settings.dialog
Settings.close()
else if (notifications = $$ '.notification').length
for notification in notifications