mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-19 19:33:47 +00:00
Fixes for Windows
This commit is contained in:
@@ -183,12 +183,14 @@ sub set_dirty {
|
||||
$self->{btn_save_preset}->Enable;
|
||||
if ($text !~ / \(modified\)$/) {
|
||||
$self->{presets_choice}->SetString($i, "$text (modified)");
|
||||
$self->{presets_choice}->SetSelection($i); # wxMSW needs this after every SetString()
|
||||
}
|
||||
} else {
|
||||
$self->{dirty} = undef;
|
||||
$self->{btn_save_preset}->Disable;
|
||||
$text =~ s/ \(modified\)$//;
|
||||
$self->{presets_choice}->SetString($i, $text);
|
||||
$self->{presets_choice}->SetSelection($i); # wxMSW needs this after every SetString()
|
||||
}
|
||||
$self->sync_presets;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user