* renamed settings file for Time preflet window position from 'Time_settings'
to 'Time_preflet_window' in order to be less confusable with the other 'Time settings', which contain the actual selected values (timezone, etc.) git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38152 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
371c5afd88
commit
a9f371c057
@ -8,7 +8,7 @@
|
||||
* Julun <host.haiku@gmx.de>
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
#include "TimeSettings.h"
|
||||
#include "TimeMessages.h"
|
||||
|
||||
@ -19,7 +19,7 @@
|
||||
|
||||
|
||||
TimeSettings::TimeSettings()
|
||||
: fSettingsFile("Time_settings")
|
||||
: fSettingsFile("Time_preflet_window")
|
||||
{
|
||||
}
|
||||
|
||||
@ -37,7 +37,7 @@ TimeSettings::LeftTop() const
|
||||
|
||||
if (find_directory(B_USER_SETTINGS_DIRECTORY, &path) == B_OK) {
|
||||
path.Append(fSettingsFile.String());
|
||||
|
||||
|
||||
BFile file(path.Path(), B_READ_ONLY);
|
||||
if (file.InitCheck() == B_OK) {
|
||||
BPoint tmp;
|
||||
@ -58,7 +58,7 @@ TimeSettings::SetLeftTop(const BPoint leftTop)
|
||||
return;
|
||||
|
||||
path.Append(fSettingsFile.String());
|
||||
|
||||
|
||||
BFile file(path.Path(), B_WRITE_ONLY | B_CREATE_FILE);
|
||||
if (file.InitCheck() == B_OK)
|
||||
file.Write(&leftTop, sizeof(BPoint));
|
||||
|
Loading…
Reference in New Issue
Block a user