From b9136fd46885587363e21c10a2cfdcd6bcaee2de Mon Sep 17 00:00:00 2001 From: Christian Kellner Date: Wed, 23 Jan 2019 17:55:43 +0100 Subject: [PATCH] thunderbolt: specific message for unknown security If bolt cannot determine the security level, which in theory should never happen[1] the standard no-thunderbolt message seems not entirely appropriate. Instead show a different message that is more tailored to this unusual case. [1] The following (unlikely) reasons would invoke such a scenario: - new security level not supported by boltd - old hardware with not force-power support and the thunderbolt controller has not yet been powered up --- panels/thunderbolt/cc-bolt-panel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panels/thunderbolt/cc-bolt-panel.c b/panels/thunderbolt/cc-bolt-panel.c index 8defff3d0..f45916627 100644 --- a/panels/thunderbolt/cc-bolt-panel.c +++ b/panels/thunderbolt/cc-bolt-panel.c @@ -505,7 +505,7 @@ cc_bolt_panel_name_owner_changed (CcBoltPanel *panel) break; case BOLT_SECURITY_UNKNOWN: - text = NULL; + text = _("Thunderbolt security level could not be determined.");; break; }