mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-11-10 03:22:25 +00:00
Default to "No" when prompting about discarding unsaved changes.
This commit is contained in:
1 parent
82cfc7c3d6
commit
bd16366d62
1 file changed
+2
-2
@@ -214,8 +214,8 @@ sub check_unsaved_changes {
|
|||||||
if (@dirty) {
|
if (@dirty) {
|
||||||
my $titles = join ', ', @dirty;
|
my $titles = join ', ', @dirty;
|
||||||
my $confirm = Wx::MessageDialog->new($self, "You have unsaved changes ($titles). Discard changes and continue anyway?",
|
my $confirm = Wx::MessageDialog->new($self, "You have unsaved changes ($titles). Discard changes and continue anyway?",
|
||||||
'Unsaved Presets', wxICON_QUESTION | wxOK | wxCANCEL);
|
'Unsaved Presets', wxICON_QUESTION | wxYES_NO | wxNO_DEFAULT);
|
||||||
return ($confirm->ShowModal == wxID_OK);
|
return ($confirm->ShowModal == wxID_YES);
|
||||||
}
|
}
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
|
|||||||
Reference in new issue
Block a user