Keeping track of versions of preferences is overkill for simple applications IMO, but the logic in PCApplication::ReadyToRun() needs this, or else the BAlert pops up on every launch. I think this could be rewritten/simplified.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21376 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -71,6 +71,7 @@ bool
|
|||||||
PCWindow::QuitRequested()
|
PCWindow::QuitRequested()
|
||||||
{
|
{
|
||||||
GebsPreferences tPreferences(kPreferencesFileName);
|
GebsPreferences tPreferences(kPreferencesFileName);
|
||||||
|
tPreferences.SaveInt32(kCurrentVersion, kVersionName);
|
||||||
tPreferences.SaveWindowPosition(this, kPosPrefName);
|
tPreferences.SaveWindowPosition(this, kPosPrefName);
|
||||||
|
|
||||||
be_app->PostMessage(B_QUIT_REQUESTED);
|
be_app->PostMessage(B_QUIT_REQUESTED);
|
||||||
|
|||||||
Reference in New Issue
Block a user