mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-03 04:50:36 +08:00
SPE-2507: Connect upload dialog size
This commit is contained in:
parent
20af632115
commit
2d41c29505
@ -8,7 +8,7 @@
|
|||||||
#include <wx/dialog.h>
|
#include <wx/dialog.h>
|
||||||
#include <wx/window.h>
|
#include <wx/window.h>
|
||||||
|
|
||||||
#define DEBUG_URL_PANEL
|
//#define DEBUG_URL_PANEL
|
||||||
|
|
||||||
namespace Slic3r::GUI {
|
namespace Slic3r::GUI {
|
||||||
class ConnectRequestHandler
|
class ConnectRequestHandler
|
||||||
|
@ -436,11 +436,12 @@ PrinterPickWebViewDialog::PrinterPickWebViewDialog(wxWindow* parent, std::string
|
|||||||
: WebViewDialog(parent
|
: WebViewDialog(parent
|
||||||
, GUI::from_u8(Utils::ServiceConfig::instance().connect_select_printer_url())
|
, GUI::from_u8(Utils::ServiceConfig::instance().connect_select_printer_url())
|
||||||
, _L("Choose a printer")
|
, _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"}
|
,{"_prusaSlicer"}
|
||||||
, "connect_loading")
|
, "connect_loading")
|
||||||
, m_ret_val(ret_val)
|
, 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();
|
Centre();
|
||||||
}
|
}
|
||||||
void PrinterPickWebViewDialog::on_show(wxShowEvent& evt)
|
void PrinterPickWebViewDialog::on_show(wxShowEvent& evt)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user