skipped 32 lines 33 33 34 34 fileprivate var markdownFormatting: NSButton!; 35 35 fileprivate var showEmoticons: NSButton!; 36 + private var suggestEmoticons: NSButton!; 36 37 fileprivate var spellchecking: NSButton!; 37 38 38 39 fileprivate var encryptionButton: NSPopUpButton!; skipped 36 lines 75 76 76 77 markdownFormatting = formView.addRow(label: NSLocalizedString("Message formatting", comment: "setting") + ":", field: NSButton(checkboxWithTitle: NSLocalizedString("Markdown", comment: "setting"), target: self, action: #selector(checkboxChanged(_:)))); 77 78 showEmoticons = formView.addRow(label: "", field: NSButton(checkboxWithTitle: NSLocalizedString("Show emoticons", comment: "setting"), target: self, action: #selector(checkboxChanged(_:)))) 79 + suggestEmoticons = formView.addRow(label: "", field: NSButton(checkboxWithTitle: NSLocalizedString("Suggest emoticons", comment: "setting"), target: self, action: #selector(checkboxChanged(_:)))) 78 80 Settings.$enableMarkdownFormatting.assign(to: \.isEnabled, on: showEmoticons).store(in: &cancellables) 79 81 spellchecking = formView.addRow(label: "", field: NSButton(checkboxWithTitle: NSLocalizedString("Spellchecking", comment: "setting"), target: self, action: #selector(checkboxChanged(_:)))); 80 82 enableLinkPreviews = formView.addRow(label: "", field: NSButton(checkboxWithTitle: NSLocalizedString("Enable link previews", comment: "setting"), target: self, action: #selector(checkboxChanged(_:)))); skipped 40 lines 121 123 notificationsFromUnknownSenders.state = Settings.notificationsFromUnknownSenders ? .on : .off; 122 124 markdownFormatting.state = Settings.enableMarkdownFormatting ? .on : .off; 123 125 showEmoticons.state = Settings.showEmoticons ? .on : .off; 126 + suggestEmoticons.state = Settings.suggestEmoticons ? .on : .off; 124 127 systemMenuIcon.state = Settings.systemMenuIcon ? .on : .off; 125 128 spellchecking.state = Settings.spellchecking ? .on : .off; 126 129 skipped 27 lines 154 157 Settings.spellchecking = sender.state == .on; 155 158 case showEmoticons: 156 159 Settings.showEmoticons = sender.state == .on; 160 + case suggestEmoticons: 161 + Settings.suggestEmoticons = sender.state == .on; 157 162 case encryptionButton: 158 163 let encryption: ChatEncryption = encryptionButton.indexOfSelectedItem == 1 ? .omemo : .none; 159 164 Settings.messageEncryption = encryption; skipped 31 lines