From eeb0bc4d31cca0f13e950be9c09dcc015f30653b Mon Sep 17 00:00:00 2001 From: Malin E Date: Fri, 25 Mar 2022 15:26:18 +0100 Subject: [PATCH] Add some info text that wildcards * can be used on the end for search --- .../ext/launcher/src/profile/horizonsdialog.cpp | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/apps/OpenSpace/ext/launcher/src/profile/horizonsdialog.cpp b/apps/OpenSpace/ext/launcher/src/profile/horizonsdialog.cpp index e7ccef712a..8840574592 100644 --- a/apps/OpenSpace/ext/launcher/src/profile/horizonsdialog.cpp +++ b/apps/OpenSpace/ext/launcher/src/profile/horizonsdialog.cpp @@ -978,10 +978,14 @@ bool HorizonsDialog::handleResult(openspace::HorizonsFile::ResultCode& result) { case openspace::HorizonsFile::ResultCode::ErrorNoObserver: appendLog( - fmt::format("No match was found for observer '{}'. Use '@{}' as observer " - "to list possible matches.", _observerName, _observerName), + fmt::format("No match was found for observer '{}'", _observerName), HorizonsDialog::LogLevel::Error ); + appendLog( + fmt::format("Try to use '@{}' as observer to search for possible " + "matches.", _observerName), + HorizonsDialog::LogLevel::Info + ); styleLabel(_centerLabel, true); break; @@ -1087,6 +1091,11 @@ bool HorizonsDialog::handleResult(openspace::HorizonsFile::ResultCode& result) { fmt::format("No match was found for target '{}'", _targetName), HorizonsDialog::LogLevel::Error ); + appendLog( + fmt::format("Try to use '{}*' as target to search for possible matches.", + _targetName), + HorizonsDialog::LogLevel::Info + ); styleLabel(_targetLabel, true); break;