macOS: force show property browser when opening preferences from menu.

pull/516/head
Koen Schmeets 2019-11-26 21:31:14 +01:00 committed by whitequark
parent 552fe354aa
commit 58f23aa061
1 changed files with 3 additions and 0 deletions

View File

@ -1409,6 +1409,9 @@ void OpenInBrowser(const std::string &url) {
@implementation SSApplicationDelegate
- (IBAction)preferences:(id)sender {
if (!SS.GW.showTextWindow) {
SolveSpace::SS.GW.MenuView(SolveSpace::Command::SHOW_TEXT_WND);
}
SolveSpace::SS.TW.GoToScreen(SolveSpace::TextWindow::Screen::CONFIGURATION);
SolveSpace::SS.ScheduleShowTW();
}