forked from 1b-agent/opencadstudio-upstream
1 parent
ecb29767d4
commit
759f2316aa
3 files changed
+118
-14
No files matched your search
+10
-1
@@ -870,9 +870,18 @@ impl PropertiesPanel {
|
||||
} else {
|
||||
Some(current.to_string())
|
||||
};
|
||||
// iced hides `selected` while the combo has focus and shows its
|
||||
// placeholder instead. Use the real pattern name for a single hatch;
|
||||
// a fixed VARIES placeholder made a correct ANSI31 value look mixed as
|
||||
// soon as the dropdown opened (#476).
|
||||
let placeholder = if current == VARIES_LABEL {
|
||||
VARIES_LABEL
|
||||
} else {
|
||||
current
|
||||
};
|
||||
let combo = combo_box(
|
||||
&self.hatch_pattern_combo,
|
||||
VARIES_LABEL,
|
||||
placeholder,
|
||||
selected.as_ref(),
|
||||
Message::PropHatchPatternChanged,
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user