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 <[email protected]>
Haiku-Format: Haiku-format Bot <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
This commit is contained in:
Pierre Ducroquet
2024-10-14 10:59:12 +00:00
committed by Adrien Destugues
parent 2116682cac
commit 66582b42a5
2 changed files with 3 additions and 2 deletions
@@ -104,6 +104,7 @@ PrintersWindow::PrintersWindow(ScreenSettings* settings)
fAddingPrinter(false)
{
_BuildGUI();
MoveOnScreen();
}
+2 -2
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) {