fix: do not show flash message when changing app theme

it is just distracting esp. when testing different themes
This commit is contained in:
Lance Edgar 2024-07-05 12:50:45 -05:00
parent 431a4d7433
commit 2988ff3ee9

View file

@ -151,8 +151,6 @@ class CommonView(View):
except Exception as error: except Exception as error:
msg = "Failed to set theme: {}: {}".format(error.__class__.__name__, error) msg = "Failed to set theme: {}: {}".format(error.__class__.__name__, error)
self.request.session.flash(msg, 'error') self.request.session.flash(msg, 'error')
else:
self.request.session.flash("App theme has been changed to: {}".format(theme))
referrer = self.request.params.get('referrer') or self.request.get_referrer() referrer = self.request.params.get('referrer') or self.request.get_referrer()
return self.redirect(referrer) return self.redirect(referrer)