mirror of
https://github.com/zombieFox/nightTab.git
synced 2025-02-01 19:09:51 +01:00
fix layout setting disable state
This commit is contained in:
parent
3ddcf199d4
commit
90d785e6d3
@ -65,6 +65,20 @@ layoutSetting.disable = () => {
|
||||
|
||||
};
|
||||
|
||||
if (state.get.current().header.order.length > 0) {
|
||||
|
||||
layoutSetting.control.area.header.width.enable();
|
||||
layoutSetting.control.area.header.justify.enable();
|
||||
layoutSetting.control.area.header.justifyHelper1.enable();
|
||||
|
||||
} else {
|
||||
|
||||
layoutSetting.control.area.header.width.disable();
|
||||
layoutSetting.control.area.header.justify.disable();
|
||||
layoutSetting.control.area.header.justifyHelper1.disable();
|
||||
|
||||
};
|
||||
|
||||
if (state.get.current().bookmark.show) {
|
||||
|
||||
switch (state.get.current().layout.direction) {
|
||||
@ -87,21 +101,6 @@ layoutSetting.disable = () => {
|
||||
|
||||
};
|
||||
|
||||
|
||||
if (state.get.current().header.order.length > 0) {
|
||||
|
||||
layoutSetting.control.area.header.width.enable();
|
||||
layoutSetting.control.area.header.justify.enable();
|
||||
layoutSetting.control.area.header.justifyHelper1.enable();
|
||||
|
||||
} else {
|
||||
|
||||
layoutSetting.control.area.header.width.disable();
|
||||
layoutSetting.control.area.header.justify.disable();
|
||||
layoutSetting.control.area.header.justifyHelper1.disable();
|
||||
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
layoutSetting.edge = {
|
||||
|
Loading…
Reference in New Issue
Block a user