SPE-2507: Connect upload dialog size

This commit is contained in:
David Kocik 2024-09-26 16:00:15 +02:00 committed by Lukas Matena
parent 20af632115
commit 2d41c29505
2 changed files with 3 additions and 2 deletions

View File

@ -8,7 +8,7 @@
#include <wx/dialog.h>
#include <wx/window.h>
#define DEBUG_URL_PANEL
//#define DEBUG_URL_PANEL
namespace Slic3r::GUI {
class ConnectRequestHandler

View File

@ -436,11 +436,12 @@ PrinterPickWebViewDialog::PrinterPickWebViewDialog(wxWindow* parent, std::string
: WebViewDialog(parent
, GUI::from_u8(Utils::ServiceConfig::instance().connect_select_printer_url())
, _L("Choose a printer")
, wxSize(std::max(parent->GetClientSize().x / 2, 100 * wxGetApp().em_unit()), std::max(parent->GetClientSize().y / 2, 50 * wxGetApp().em_unit()))
, wxSize(std::max(parent->GetClientSize().x / 4 * 3, 150 * wxGetApp().em_unit()), std::max(parent->GetClientSize().y / 6 * 5, 100 * wxGetApp().em_unit()))
,{"_prusaSlicer"}
, "connect_loading")
, m_ret_val(ret_val)
{
SetMinSize(wxSize(std::max(parent->GetClientSize().x / 2, 100 * wxGetApp().em_unit()), std::max(parent->GetClientSize().y / 2, 50 * wxGetApp().em_unit())));
Centre();
}
void PrinterPickWebViewDialog::on_show(wxShowEvent& evt)