Store preferences in a File
This commit is contained in:
parent
8e956baea7
commit
f45da3af40
|
@ -40,6 +40,7 @@ Application Caya :
|
|||
AccountDialog.cpp
|
||||
AccountListItem.cpp
|
||||
AccountView.cpp
|
||||
CayaPreferences.cpp
|
||||
PreferencesDialog.cpp
|
||||
PreferencesAccounts.cpp
|
||||
PreferencesBehavior.cpp
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
#include "CayaConstants.h"
|
||||
#include "CayaMessages.h"
|
||||
#include "CayaProtocolMessages.h"
|
||||
#include "CayaPreferences.h"
|
||||
#include "CayaResources.h"
|
||||
#include "CayaUtils.h"
|
||||
#include "NotifyMessage.h"
|
||||
|
@ -119,6 +120,7 @@ MainWindow::QuitRequested()
|
|||
{
|
||||
fListView->MakeEmpty();
|
||||
fServer->Quit();
|
||||
CayaPreferences::Get()->Save();
|
||||
be_app->PostMessage(B_QUIT_REQUESTED);
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
#include "CayaPreferences.h"
|
||||
|
||||
template<> const char* CayaPreferences::fFolder = "Caya";
|
||||
template<> const char* CayaPreferences::fFilename = "preferences";
|
Ŝarĝante…
Reference in New Issue