mirror of
https://review.haiku-os.org/haiku
synced 2024-11-23 07:18:40 +01:00
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:
parent
2116682cac
commit
66582b42a5
@ -104,6 +104,7 @@ PrintersWindow::PrintersWindow(ScreenSettings* settings)
|
||||
fAddingPrinter(false)
|
||||
{
|
||||
_BuildGUI();
|
||||
MoveOnScreen();
|
||||
}
|
||||
|
||||
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user