Skip to content

Commit

Permalink
Show Installer on all workspaces when Tracker isn't running.
Browse files Browse the repository at this point in the history
This applies to the EULA window as well. Addresses #9287:comment:5
  • Loading branch information
mmadia committed Jan 3, 2013
1 parent 87d333e commit 1565964
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
8 changes: 7 additions & 1 deletion src/apps/installer/InstallerApp.cpp
Expand Up @@ -10,9 +10,12 @@
#include <Button.h>
#include <LayoutBuilder.h>
#include <Locale.h>
#include <Roster.h>
#include <ScrollView.h>
#include <TextView.h>

#include "tracker_private.h"


static const uint32 kMsgAgree = 'agre';

Expand Down Expand Up @@ -251,7 +254,10 @@ InstallerApp::ReadyToRun()
BRect eulaFrame = BRect(0, 0, 600, 450);
fEULAWindow = new BWindow(eulaFrame, B_TRANSLATE("README"),
B_MODAL_WINDOW_LOOK, B_NORMAL_WINDOW_FEEL, B_NOT_ZOOMABLE
| B_NOT_MINIMIZABLE | B_AUTO_UPDATE_SIZE_LIMITS, B_ALL_WORKSPACES);
| B_NOT_MINIMIZABLE | B_AUTO_UPDATE_SIZE_LIMITS);

if (!be_roster->IsRunning(kTrackerSignature))
fEULAWindow->SetWorkspaces(B_ALL_WORKSPACES);

BLayoutBuilder::Group<>(fEULAWindow, B_VERTICAL, 10)
.SetInsets(10)
Expand Down
5 changes: 4 additions & 1 deletion src/apps/installer/InstallerWindow.cpp
Expand Up @@ -157,14 +157,17 @@ InstallerWindow::InstallerWindow()
:
BWindow(BRect(-2000, -2000, -1800, -1800),
B_TRANSLATE_SYSTEM_NAME("Installer"), B_TITLED_WINDOW,
B_NOT_ZOOMABLE | B_AUTO_UPDATE_SIZE_LIMITS, B_ALL_WORKSPACES),
B_NOT_ZOOMABLE | B_AUTO_UPDATE_SIZE_LIMITS),
fEncouragedToSetupPartitions(false),
fDriveSetupLaunched(false),
fBootManagerLaunched(false),
fInstallStatus(kReadyForInstall),
fWorkerThread(new WorkerThread(this)),
fCopyEngineCancelSemaphore(-1)
{
if (!be_roster->IsRunning(kTrackerSignature))
SetWorkspaces(B_ALL_WORKSPACES);

LogoView* logoView = new LogoView();

fStatusView = new BTextView("statusView", be_plain_font, NULL,
Expand Down

0 comments on commit 1565964

Please sign in to comment.