Skip to content

Commit

Permalink
Disable the "Settings" button, until we reimplement the needed bits.
Browse files Browse the repository at this point in the history
Avoids having to kill the app due to the current non-closable
SettingsWindow.
  • Loading branch information
OscarL committed Sep 14, 2023
1 parent edab50e commit 1b669ce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions FastTrax/UIMain/FastTraxWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,13 @@ FastTraxWindow :: FastTraxWindow( entry_ref * ref )
r = button->Frame() ;
r.OffsetTo( r.left, r.bottom + 7 ) ;

/** Disable for now, until we reimplement the missing SettingsWindow functionality.
button = new BButton( r , "settings", "Settings",
new BMessage( Messages::SettingsRequested ) ) ;
rightView->AddChild( button ) ;
button->ResizeToPreferred() ;
r = button->Frame() ;
*/
r.OffsetTo( r.left, r.bottom + 7 ) ;

rightView->ResizeTo( r.right + 7 , r.bottom + 7 ) ;
Expand Down
3 changes: 2 additions & 1 deletion TraxSource/UIMain/OptionsPanel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ void OptionsPanel :: AttachedToWindow( void )
r.left = 10 ;
r.right = r.left + 50 ;

/** Disable for now, until we reimplement the missing SettingsWindow functionality.
BButton * settingsButton = new BButton( r, "settings", "Settings" B_UTF8_ELLIPSIS,
new BMessage( Messages::Settings ) ,
B_FOLLOW_LEFT | B_FOLLOW_TOP ) ;
Expand All @@ -142,7 +143,7 @@ void OptionsPanel :: AttachedToWindow( void )
r.right = fr.Width() - 25 ;
r.left = r.right - 50 ;

*/
fpFindButton = new BButton( r, "go", "Find",
new BMessage( Messages::StartFind ) ,
B_FOLLOW_RIGHT | B_FOLLOW_TOP ) ;
Expand Down

0 comments on commit 1b669ce

Please sign in to comment.