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:
parent
ff6ef6d397
commit
9eb8022e0c
@ -71,6 +71,7 @@ bool
|
||||
PCWindow::QuitRequested()
|
||||
{
|
||||
GebsPreferences tPreferences(kPreferencesFileName);
|
||||
tPreferences.SaveInt32(kCurrentVersion, kVersionName);
|
||||
tPreferences.SaveWindowPosition(this, kPosPrefName);
|
||||
|
||||
be_app->PostMessage(B_QUIT_REQUESTED);
|
||||
|
Loading…
x
Reference in New Issue
Block a user