mirror of
https://review.haiku-os.org/haiku
synced 2025-02-22 21:48:35 +01:00
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:
parent
3179449933
commit
21629aa53d
@ -17,10 +17,13 @@
|
||||
|
||||
#include <Application.h>
|
||||
#include <Catalog.h>
|
||||
#include <Roster.h>
|
||||
#include <Screen.h>
|
||||
|
||||
#include <math.h>
|
||||
|
||||
#include "tracker_private.h"
|
||||
|
||||
|
||||
#undef TR_CONTEXT
|
||||
#define TR_CONTEXT "BootManagerWindow"
|
||||
@ -28,7 +31,8 @@
|
||||
|
||||
|
||||
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_ASYNCHRONOUS_CONTROLS | B_NOT_ZOOMABLE)
|
||||
{
|
||||
@ -44,6 +48,11 @@ BootManagerWindow::BootManagerWindow()
|
||||
AddShortcut('A', B_COMMAND_KEY, new BMessage(B_ABOUT_REQUESTED));
|
||||
|
||||
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 ;
|
||||
|
||||
UsePrivateHeaders shared ;
|
||||
UsePrivateHeaders storage ;
|
||||
UsePrivateHeaders shared storage tracker ;
|
||||
|
||||
Application bootman :
|
||||
BootManager.cpp
|
||||
|
Loading…
x
Reference in New Issue
Block a user