[haiku-bugs] Re: [Haiku] #6051: Close TeamMonitor after restarting desktop

  • From: "humdinger" <trac@xxxxxxxxxxxx>
  • Date: Wed, 26 May 2010 18:10:01 -0000

#6051: Close TeamMonitor after restarting desktop
----------------------------------+-----------------------------------------
 Reporter:  humdinger             |       Owner:  korli         
     Type:  enhancement           |      Status:  new           
 Priority:  normal                |   Milestone:  R1            
Component:  Servers/input_server  |     Version:  R1/Development
 Keywords:                        |    Platform:  All           
Blockedby:                        |       Patch:  1             
 Blocking:                        |  
----------------------------------+-----------------------------------------

Comment(by humdinger):

 I attached a new patch making "Cancel" the default if "Restart Desktop" is
 hidden. I had to move the line "fRestartButton->Hide()" further down when
 building the GUI. Otherwise, the Cancel button would move to the right
 when the "Restart Desktop" button is finally shown. I'm not sure why that
 is...

 It now behaves generally how it should. There's one thing however that I
 don't understand: Invoke TM, kill Deskbar, cancel TM, invoke TM again,
 press "Restart Desktop". Instead of the button being hidden again after
 launching Deskbar, it's just disabled. If I replace the responsible line
 "fRestartButton->SetEnabled(!desktopRunning);" with a
 "fRestartButton->Hide();" the button is never shown...

 Maybe someone can improve the patch?

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/6051#comment:8>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: