chore(input): remove unimplemented menu items (#2169)
This commit is contained in:
parent
6a9b711a22
commit
d5da6a476d
1 changed files with 20 additions and 22 deletions
|
|
@ -118,8 +118,8 @@ pub enum SourceContext {
|
||||||
MoveDown(DefaultKey),
|
MoveDown(DefaultKey),
|
||||||
MoveUp(DefaultKey),
|
MoveUp(DefaultKey),
|
||||||
Remove(DefaultKey),
|
Remove(DefaultKey),
|
||||||
Settings(DefaultKey),
|
// Settings(DefaultKey),
|
||||||
ViewLayout(DefaultKey),
|
// ViewLayout(DefaultKey),
|
||||||
}
|
}
|
||||||
|
|
||||||
pub type Locale = String;
|
pub type Locale = String;
|
||||||
|
|
@ -250,18 +250,18 @@ fn popover_menu(
|
||||||
.apply(widget::container)
|
.apply(widget::container)
|
||||||
.padding(8)
|
.padding(8)
|
||||||
.into(),
|
.into(),
|
||||||
popover_menu_row(
|
// popover_menu_row(
|
||||||
id,
|
// id,
|
||||||
fl!("keyboard-sources", "settings"),
|
// fl!("keyboard-sources", "settings"),
|
||||||
SourceContext::Settings,
|
// SourceContext::Settings,
|
||||||
false,
|
// false,
|
||||||
),
|
// ),
|
||||||
popover_menu_row(
|
// popover_menu_row(
|
||||||
id,
|
// id,
|
||||||
fl!("keyboard-sources", "view-layout"),
|
// fl!("keyboard-sources", "view-layout"),
|
||||||
SourceContext::ViewLayout,
|
// SourceContext::ViewLayout,
|
||||||
false,
|
// false,
|
||||||
),
|
// ),
|
||||||
popover_menu_row(
|
popover_menu_row(
|
||||||
id,
|
id,
|
||||||
fl!("keyboard-sources", "remove"),
|
fl!("keyboard-sources", "remove"),
|
||||||
|
|
@ -546,15 +546,13 @@ impl Page {
|
||||||
let _removed = self.active_layouts.remove(pos);
|
let _removed = self.active_layouts.remove(pos);
|
||||||
self.update_xkb_config();
|
self.update_xkb_config();
|
||||||
}
|
}
|
||||||
}
|
} // SourceContext::Settings(_id) => {
|
||||||
|
// eprintln!("settings not implemented");
|
||||||
|
// }
|
||||||
|
|
||||||
SourceContext::Settings(_id) => {
|
// SourceContext::ViewLayout(_id) => {
|
||||||
eprintln!("settings not implemented");
|
// eprintln!("view layout not implemented");
|
||||||
}
|
// }
|
||||||
|
|
||||||
SourceContext::ViewLayout(_id) => {
|
|
||||||
eprintln!("view layout not implemented");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue