Move Deskbar prefs window to current workspace if hidden

This commit is contained in:
John Scipione 2013-02-11 21:49:03 -05:00
parent 66e9410806
commit 331c9098ea
2 changed files with 13 additions and 0 deletions

View File

@ -283,6 +283,18 @@ PreferencesWindow::QuitRequested()
}
void
PreferencesWindow::Show()
{
if (IsHidden()) {
// move to current workspace
SetWorkspaces(B_CURRENT_WORKSPACE);
}
BWindow::Show();
}
void
PreferencesWindow::WindowActivated(bool active)
{

View File

@ -35,6 +35,7 @@ public:
virtual void MessageReceived(BMessage* message);
virtual bool QuitRequested();
virtual void Show();
virtual void WindowActivated(bool active);
void UpdateRecentCounts();