// Copyright (c) 2020 Proton Technologies AG // // This file is part of ProtonMail Bridge. // // ProtonMail Bridge is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // ProtonMail Bridge is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with ProtonMail Bridge. If not, see . // Dialog with Yes/No buttons import QtQuick 2.8 import ProtonUI 1.0 Dialog { id: root title : qsTr( "Common connection problems and solutions", "Title of the network troubleshooting modal" ) isDialogBusy: false // can close property var parContent : [ [ qsTr("Allow alternative routing" , "Paragraph title"), qsTr( "In case Proton sites are blocked, this setting allows Bridge "+ "to try alternative network routing to reach Proton, which can "+ "be useful for bypassing firewalls or network issues. We recommend "+ "keeping this setting on for greater reliability. "+ 'Learn more'+ " and "+ 'enable here'+ ".", "Paragraph content" ), ], [ qsTr("No internet connection" , "Paragraph title"), qsTr( "Please make sure that your internet connection is working.", "Paragraph content" ), ], [ qsTr("Internet Service Provider (ISP) problem" , "Paragraph title"), qsTr( "Try connecting to Proton from a different network (or use "+ 'ProtonVPN'+ " or "+ 'Tor'+ ").", "Paragraph content" ), ], [ qsTr("Government block" , "Paragraph title"), qsTr( "Your country may be blocking access to Proton. Try using "+ 'ProtonVPN'+ " (or any other VPN) or "+ 'Tor'+ ".", "Paragraph content" ), ], [ qsTr("Antivirus interference" , "Paragraph title"), qsTr( "Temporarily disable or remove your antivirus software.", "Paragraph content" ), ], [ qsTr("Proxy/Firewall interference" , "Paragraph title"), qsTr( "Disable any proxies or firewalls, or contact your network administrator.", "Paragraph content" ), ], [ qsTr("Still can’t find a solution" , "Paragraph title"), qsTr( "Contact us directly through our "+ 'support form'+ ", email (support@protonmail.com), or "+ 'Twitter'+ ".", "Paragraph content" ), ], [ qsTr("Proton is down" , "Paragraph title"), qsTr( "Check "+ 'Proton Status'+ " for our system status.", "Paragraph content" ), ], ] Item { AccessibleText { anchors.centerIn: parent color: Style.old.pm_white linkColor: color width: parent.width - 50 * Style.px wrapMode: Text.WordWrap font.pointSize: Style.main.fontSize*Style.pt onLinkActivated: { if (link=="showProxy") { dialogGlobal.state= "toggleAllowProxy" dialogGlobal.show() } else { Qt.openUrlExternally(link) } } text: { var content="" for (var i=0; i " content += par[1] content += "

\n" } return content } } } }