[haiku-commits] haiku: hrev53926 - in src/apps/haikudepot/ui: . src/apps/haikudepot

  • From: Andrew Lindesay <apl@xxxxxxxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sat, 29 Feb 2020 05:50:09 -0500 (EST)

hrev53926 adds 1 changeset to branch 'master'
old head: adcf5b05a8ca9e17407aa4640675c3873c9f0a6c
new head: b21c94474eb4646e60d7b4b92e908ac94efe9422
overview: 
https://git.haiku-os.org/haiku/log/?qt=range&q=b21c94474eb4+%5Eadcf5b05a8ca

----------------------------------------------------------------------------

b21c94474eb4: HaikuDepot: Instructions on Logs
  
  Some error messages make mention of application logs
  and users don't know how to view the logs.  This
  change adds some instructions about that to the user
  guide and also directs the user to the user guide in
  any error messages that mention the logs.
  
  Change-Id: Ib98737abe853586c58a1c1df7befb86aa1c04491
  Reviewed-on: https://review.haiku-os.org/c/haiku/+/2285
  Reviewed-by: humdinger <humdingerb@xxxxxxxxx>

                                    [ Andrew Lindesay <apl@xxxxxxxxxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev53926
Commit:      b21c94474eb4646e60d7b4b92e908ac94efe9422
URL:         https://git.haiku-os.org/haiku/commit/?id=b21c94474eb4
Author:      Andrew Lindesay <apl@xxxxxxxxxxxxxx>
Date:        Thu Feb 27 09:44:22 2020 UTC

----------------------------------------------------------------------------

4 files changed, 9 insertions(+), 3 deletions(-)
src/apps/haikudepot/HaikuDepotConstants.h            | 3 +++
src/apps/haikudepot/ui/MainWindow.cpp                | 3 ++-
src/apps/haikudepot/ui/UserLoginWindow.cpp           | 3 ++-
src/apps/haikudepot/ui/UserUsageConditionsWindow.cpp | 3 ++-

----------------------------------------------------------------------------

diff --git a/src/apps/haikudepot/HaikuDepotConstants.h 
b/src/apps/haikudepot/HaikuDepotConstants.h
index 4e79b348ca..ba01cd06d3 100644
--- a/src/apps/haikudepot/HaikuDepotConstants.h
+++ b/src/apps/haikudepot/HaikuDepotConstants.h
@@ -78,4 +78,7 @@ enum UserUsageConditionsSelectionMode {
 
 #define STR_MDASH "\xE2\x80\x94"
 
+#define ALERT_MSG_LOGS_USER_GUIDE "Information about how to view the logs is " 
\
+       "available in the HaikuDepot section of the user guide."
+
 #endif // HAIKU_DEPOT_CONSTANTS_H
\ No newline at end of file
diff --git a/src/apps/haikudepot/ui/MainWindow.cpp 
b/src/apps/haikudepot/ui/MainWindow.cpp
index f2c8a9967c..1882c393c2 100644
--- a/src/apps/haikudepot/ui/MainWindow.cpp
+++ b/src/apps/haikudepot/ui/MainWindow.cpp
@@ -972,7 +972,8 @@ MainWindow::_BulkLoadProcessCoordinatorFinished(
                                "that may cause data to be outdated or missing 
from the "
                                "application's display. Additional details 
regarding this "
                                "problem may be able to be obtained from the 
application "
-                               "logs."));
+                               "logs."
+                               ALERT_MSG_LOGS_USER_GUIDE));
        }
        BMessenger messenger(this);
        messenger.SendMessage(MSG_BULK_LOAD_DONE);
diff --git a/src/apps/haikudepot/ui/UserLoginWindow.cpp 
b/src/apps/haikudepot/ui/UserLoginWindow.cpp
index 6a4e5eb84f..23b90c9a1d 100644
--- a/src/apps/haikudepot/ui/UserLoginWindow.cpp
+++ b/src/apps/haikudepot/ui/UserLoginWindow.cpp
@@ -785,7 +785,8 @@ 
UserLoginWindow::_CreateAccountUserUsageConditionsSetupThread(
                        B_TRANSLATE("Usage conditions download problem"),
                        B_TRANSLATE("An error has arisen downloading the usage "
                                "conditions required to create a new user. 
Check the log for "
-                               "details and try again."));
+                               "details and try again. "
+                               ALERT_MSG_LOGS_USER_GUIDE));
        }
 
        return result;
diff --git a/src/apps/haikudepot/ui/UserUsageConditionsWindow.cpp 
b/src/apps/haikudepot/ui/UserUsageConditionsWindow.cpp
index 62bb88de02..dc7bd042f4 100644
--- a/src/apps/haikudepot/ui/UserUsageConditionsWindow.cpp
+++ b/src/apps/haikudepot/ui/UserUsageConditionsWindow.cpp
@@ -391,7 +391,8 @@ UserUsageConditionsWindow::_NotifyFetchProblem()
        AppUtils::NotifySimpleError(
                B_TRANSLATE("Usage conditions download problem"),
                B_TRANSLATE("An error has arisen downloading the usage "
-                       "conditions. Check the log for details and try 
again."));
+                       "conditions. Check the log for details and try again. "
+                       ALERT_MSG_LOGS_USER_GUIDE));
 }
 
 


Other related posts:

  • » [haiku-commits] haiku: hrev53926 - in src/apps/haikudepot/ui: . src/apps/haikudepot - Andrew Lindesay