Printers window position: fix initial position

on a fresh Haiku install, Printers window title is hidden
due to the window position. Also use a better filename
for the window position settings.

Change-Id: Iee6a8fd0d992c5265f07082e5df99c577433b21d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8420
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Haiku-Format: Haiku-format Bot <no-reply+haikuformatbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
This commit is contained in:
Pierre Ducroquet 2024-09-29 23:48:35 +02:00 committed by Adrien Destugues
parent 2116682cac
commit 66582b42a5
2 changed files with 3 additions and 2 deletions

View File

@ -104,6 +104,7 @@ PrintersWindow::PrintersWindow(ScreenSettings* settings)
fAddingPrinter(false)
{
_BuildGUI();
MoveOnScreen();
}

View File

@ -16,13 +16,13 @@
#include <Path.h>
static const char* kSettingsFileName = "Screen_data";
static const char* kSettingsFileName = "Print_preflet_Screen_data";
ScreenSettings::ScreenSettings()
{
fWindowFrame.Set(0, 0, 450, 250);
BPoint offset;
BPoint offset(-1000, -1000);
BPath path;
if (find_directory(B_USER_SETTINGS_DIRECTORY, &path) == B_OK) {