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:
committed by
Adrien Destugues
parent
2116682cac
commit
66582b42a5
@@ -104,6 +104,7 @@ PrintersWindow::PrintersWindow(ScreenSettings* settings)
|
|||||||
fAddingPrinter(false)
|
fAddingPrinter(false)
|
||||||
{
|
{
|
||||||
_BuildGUI();
|
_BuildGUI();
|
||||||
|
MoveOnScreen();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -16,13 +16,13 @@
|
|||||||
#include <Path.h>
|
#include <Path.h>
|
||||||
|
|
||||||
|
|
||||||
static const char* kSettingsFileName = "Screen_data";
|
static const char* kSettingsFileName = "Print_preflet_Screen_data";
|
||||||
|
|
||||||
|
|
||||||
ScreenSettings::ScreenSettings()
|
ScreenSettings::ScreenSettings()
|
||||||
{
|
{
|
||||||
fWindowFrame.Set(0, 0, 450, 250);
|
fWindowFrame.Set(0, 0, 450, 250);
|
||||||
BPoint offset;
|
BPoint offset(-1000, -1000);
|
||||||
|
|
||||||
BPath path;
|
BPath path;
|
||||||
if (find_directory(B_USER_SETTINGS_DIRECTORY, &path) == B_OK) {
|
if (find_directory(B_USER_SETTINGS_DIRECTORY, &path) == B_OK) {
|
||||||
|
|||||||
Reference in New Issue
Block a user