Don't print useless error message when app monitor config file does not exist
This warning was printed even when app monitoring was disabled. It's not needed anyay since we'll warn on saving if an error occurs.
This commit is contained in:
parent
b7d3640b49
commit
4ef655ffce
@ -913,10 +913,9 @@ restore_from_file (ShellAppMonitor *monitor)
|
||||
input = g_file_read (monitor->configfile, NULL, &error);
|
||||
if (error)
|
||||
{
|
||||
if (error->code == G_IO_ERROR_NOT_FOUND)
|
||||
g_message ("No applications usage data file found. This is normal if you start the program for the first time.");
|
||||
else
|
||||
if (error->code != G_IO_ERROR_NOT_FOUND)
|
||||
g_warning ("Could not load applications usage data: %s", error->message);
|
||||
|
||||
g_error_free (error);
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user