mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 10:32:20 +00:00
Import wxTheApp
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
package Slic3r::GUI::Preferences;
|
||||
use Wx qw(:dialog :id :misc :sizer :systemsettings);
|
||||
use Wx qw(:dialog :id :misc :sizer :systemsettings wxTheApp);
|
||||
use Wx::Event qw(EVT_BUTTON EVT_TEXT_ENTER);
|
||||
use base 'Wx::Dialog';
|
||||
|
||||
@@ -28,7 +28,7 @@ sub new {
|
||||
label => 'Check for updates',
|
||||
tooltip => 'If this is enabled, Slic3r will check for updates daily and display a reminder if a newer version is available.',
|
||||
default => $Slic3r::GUI::Settings->{_}{version_check} // 1,
|
||||
readonly => !&Wx::wxTheApp->have_version_check,
|
||||
readonly => !wxTheApp->have_version_check,
|
||||
},
|
||||
{
|
||||
opt_key => 'remember_output_path',
|
||||
@@ -77,7 +77,7 @@ sub _accept {
|
||||
}
|
||||
|
||||
$Slic3r::GUI::Settings->{_}{$_} = $self->{values}{$_} for keys %{$self->{values}};
|
||||
&Wx::wxTheApp->save_settings;
|
||||
wxTheApp->save_settings;
|
||||
|
||||
$self->EndModal(wxID_OK);
|
||||
$self->Close; # needed on Linux
|
||||
|
||||
Reference in New Issue
Block a user