Switch about window to current workspace if hidden.
This commit is contained in:
@@ -27,6 +27,7 @@ class BAboutWindow : public BWindow {
|
||||
virtual ~BAboutWindow();
|
||||
|
||||
virtual bool QuitRequested();
|
||||
virtual void Show();
|
||||
|
||||
BPoint AboutPosition(float width, float height);
|
||||
void AddDescription(const char* description);
|
||||
|
||||
@@ -434,6 +434,18 @@ BAboutWindow::QuitRequested()
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
BAboutWindow::Show()
|
||||
{
|
||||
if (IsHidden()) {
|
||||
// move to current workspace
|
||||
SetWorkspaces(B_CURRENT_WORKSPACE);
|
||||
}
|
||||
|
||||
BWindow::Show();
|
||||
}
|
||||
|
||||
|
||||
// #pragma mark - BAboutWindow public methods
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user