Mac: Disable auto window menu, fix upload queue window size

This commit is contained in:
Vojtech Kral 2019-01-11 17:06:46 +01:00
parent c63aff6dda
commit 201d7aa5e8
2 changed files with 6 additions and 1 deletions

View File

@ -220,6 +220,10 @@ bool MainFrame::can_delete_all() const
void MainFrame::init_menubar() void MainFrame::init_menubar()
{ {
#ifdef __APPLE__
wxMenuBar::SetAutoWindowMenu(false);
#endif
// File menu // File menu
wxMenu* fileMenu = new wxMenu; wxMenu* fileMenu = new wxMenu;
{ {

View File

@ -93,7 +93,8 @@ PrintHostQueueDialog::PrintHostQueueDialog(wxWindow *parent)
{ {
enum { HEIGHT = 800, WIDTH = 400, SPACING = 5 }; enum { HEIGHT = 800, WIDTH = 400, SPACING = 5 };
SetMinSize(wxSize(HEIGHT, WIDTH)); SetSize(wxSize(HEIGHT, WIDTH));
SetSize(GetMinSize());
auto *topsizer = new wxBoxSizer(wxVERTICAL); auto *topsizer = new wxBoxSizer(wxVERTICAL);