Don't allow the main window to be minimized when the Deskbar is not running.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36481 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -17,10 +17,13 @@
|
|||||||
|
|
||||||
#include <Application.h>
|
#include <Application.h>
|
||||||
#include <Catalog.h>
|
#include <Catalog.h>
|
||||||
|
#include <Roster.h>
|
||||||
#include <Screen.h>
|
#include <Screen.h>
|
||||||
|
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
|
#include "tracker_private.h"
|
||||||
|
|
||||||
|
|
||||||
#undef TR_CONTEXT
|
#undef TR_CONTEXT
|
||||||
#define TR_CONTEXT "BootManagerWindow"
|
#define TR_CONTEXT "BootManagerWindow"
|
||||||
@@ -28,7 +31,8 @@
|
|||||||
|
|
||||||
|
|
||||||
BootManagerWindow::BootManagerWindow()
|
BootManagerWindow::BootManagerWindow()
|
||||||
: BWindow(BRect(100, 100, 500, 400), TR_CMT("Boot Manager", "Window Title"),
|
:
|
||||||
|
BWindow(BRect(100, 100, 500, 400), TR_CMT("Boot Manager", "Window Title"),
|
||||||
B_TITLED_WINDOW,
|
B_TITLED_WINDOW,
|
||||||
B_ASYNCHRONOUS_CONTROLS | B_NOT_ZOOMABLE)
|
B_ASYNCHRONOUS_CONTROLS | B_NOT_ZOOMABLE)
|
||||||
{
|
{
|
||||||
@@ -44,6 +48,11 @@ BootManagerWindow::BootManagerWindow()
|
|||||||
AddShortcut('A', B_COMMAND_KEY, new BMessage(B_ABOUT_REQUESTED));
|
AddShortcut('A', B_COMMAND_KEY, new BMessage(B_ABOUT_REQUESTED));
|
||||||
|
|
||||||
CenterOnScreen();
|
CenterOnScreen();
|
||||||
|
|
||||||
|
// Prevent minimizing this window if the user would have no way to
|
||||||
|
// get back to it. (For example when only the Installer runs.)
|
||||||
|
if (!be_roster->IsRunning(kDeskbarSignature))
|
||||||
|
SetFlags(Flags() | B_NOT_MINIMIZABLE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
SubDir HAIKU_TOP src apps bootman ;
|
SubDir HAIKU_TOP src apps bootman ;
|
||||||
|
|
||||||
UsePrivateHeaders shared ;
|
UsePrivateHeaders shared storage tracker ;
|
||||||
UsePrivateHeaders storage ;
|
|
||||||
|
|
||||||
Application bootman :
|
Application bootman :
|
||||||
BootManager.cpp
|
BootManager.cpp
|
||||||
|
|||||||
Reference in New Issue
Block a user