Various UI fixes

This commit is contained in:
Ilya Laktyushin
2019-08-23 06:55:33 +03:00
parent e3a669f489
commit cfb5d2027a
84 changed files with 860 additions and 806 deletions

View File

@@ -384,7 +384,7 @@ private final class ProxyServerActionItemNode: ActionSheetItemNode {
updateProxySettingsInteractively(transaction: transaction, { settings in
currentSettings = settings
var settings = settings
if let index = settings.servers.index(of: proxyServerSettings) {
if let index = settings.servers.firstIndex(of: proxyServerSettings) {
settings.servers[index] = proxyServerSettings
settings.activeServer = proxyServerSettings
} else {