mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 01:07:57 -06:00
Import wxTheApp
This commit is contained in:
parent
ddac2d1570
commit
3d8c8fa46e
8 changed files with 42 additions and 39 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue