Set automatic via else block
This commit is contained in:
parent
3349e32196
commit
5b1d5b39a2
1 changed files with 3 additions and 5 deletions
|
@ -426,9 +426,7 @@ static NSTouchBarItemIdentifier SegmentedControlIdentifier = @"com.electron.touc
|
|||
|
||||
std::string segmentStyle;
|
||||
settings.Get("segmentStyle", &segmentStyle);
|
||||
if (segmentStyle == "automatic")
|
||||
control.segmentStyle = NSSegmentStyleAutomatic;
|
||||
else if (segmentStyle == "rounded")
|
||||
if (segmentStyle == "rounded")
|
||||
control.segmentStyle = NSSegmentStyleRounded;
|
||||
else if (segmentStyle == "textured-rounded")
|
||||
control.segmentStyle = NSSegmentStyleTexturedRounded;
|
||||
|
|
Loading…
Reference in a new issue