From 41e7b018c1f36395dccdff586f2668a249a5bcc0 Mon Sep 17 00:00:00 2001 From: Simon Magnin-Feysot Date: Tue, 7 Apr 2020 19:06:10 +0200 Subject: command toggle downloads --- ui/commands.go | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'ui/commands.go') diff --git a/ui/commands.go b/ui/commands.go index 747be1e..a57a78d 100644 --- a/ui/commands.go +++ b/ui/commands.go @@ -570,6 +570,13 @@ func cmdToggle(cmd *Command) { } else { cmd.Reply("Enabled Markdown input") } + case "downloads": + cmd.Config.Preferences.DisableDownloads = !cmd.Config.Preferences.DisableDownloads + if cmd.Config.Preferences.DisableDownloads { + cmd.Reply("Disabled Downloads input") + } else { + cmd.Reply("Enabled Downloads input") + } default: cmd.Reply("Usage: /toggle ") return -- cgit v1.2.3