src: Added more status messages and some fixes
* Elide status bar messages to avoid window resize window * Fixed status view clearing when switching projects * Refactored app setting loading * Replace newline characters with spaces in status view
This commit is contained in:
@@ -57,12 +57,10 @@ void StatusBarController::handleMessage(MessageStatus* message)
|
||||
|
||||
void StatusBarController::setStatus(const std::string& status, bool isError, bool showLoader)
|
||||
{
|
||||
std::string str = utility::replace(status, "\n", " ");
|
||||
|
||||
if (!str.empty())
|
||||
if (!status.empty())
|
||||
{
|
||||
LOG_INFO_STREAM(<< "STATUS " << str);
|
||||
LOG_INFO_STREAM(<< "STATUS " << status);
|
||||
|
||||
getView()->showMessage(str, isError, showLoader);
|
||||
getView()->showMessage(status, isError, showLoader);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user