Commit c0f6818d authored by Nate Graham's avatar Nate Graham
Browse files

Adjust the placeholder message to account for the firewall being on or off

If the firewall is off, the "Add Rule..." button is disabled, so we
can't tell the user to click it without first telling them what they
need to do to make it enabled.
parent 838fe038
......@@ -310,7 +310,9 @@ KCM.ScrollViewKCM {
width: parent.width - (Kirigami.Units.largeSpacing * 4)
visible: tableView.rowCount === 0
text: i18n("No firewall rules have been added")
explanation: xi18nc("@info", "Click the <interface>Add Rule...</interface> button below to add one")
explanation: kcm.client.enabled ?
xi18nc("@info", "Click the <interface>Add Rule...</interface> button below to add one") :
xi18nc("@info", "Enable the firewall with the <interface>Firewall Status</interface> checkbox above, and then click the <interface>Add Rule...</interface> button below to add one")
}
QQC1.TableViewColumn {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment