mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-07-11 03:11:47 +08:00
Merge pull request #2532 from lordofhyphens/issue2530_partial_fix
A partial fix for issue #2530
This commit is contained in:
commit
88b62a9923
@ -47,5 +47,9 @@ sub GetValue {
|
|||||||
my ($self) = @_;
|
my ($self) = @_;
|
||||||
return $self->{devices}[ $self->{choice}->GetSelection ]->address;
|
return $self->{devices}[ $self->{choice}->GetSelection ]->address;
|
||||||
}
|
}
|
||||||
|
sub GetPort {
|
||||||
|
my ($self) = @_;
|
||||||
|
return $self->{devices}[ $self->{choice}->GetSelection ]->port;
|
||||||
|
}
|
||||||
|
|
||||||
1;
|
1;
|
||||||
|
@ -1015,7 +1015,7 @@ sub build {
|
|||||||
EVT_BUTTON($self, $btn, sub {
|
EVT_BUTTON($self, $btn, sub {
|
||||||
my $dlg = Slic3r::GUI::BonjourBrowser->new($self);
|
my $dlg = Slic3r::GUI::BonjourBrowser->new($self);
|
||||||
if ($dlg->ShowModal == wxID_OK) {
|
if ($dlg->ShowModal == wxID_OK) {
|
||||||
my $value = $dlg->GetValue;
|
my $value = $dlg->GetValue . ":" . $dlg->GetPort;
|
||||||
$self->{config}->set('octoprint_host', $value);
|
$self->{config}->set('octoprint_host', $value);
|
||||||
$self->update_dirty;
|
$self->update_dirty;
|
||||||
$self->_on_value_change('octoprint_host', $value);
|
$self->_on_value_change('octoprint_host', $value);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user