mirror of
https://github.com/Kvan7/Exiled-Exchange-2.git
synced 2025-10-30 14:17:55 +00:00
remove another special case
This commit is contained in:
@@ -530,6 +530,13 @@ function upgradeConfig(_config: Config): Config {
|
||||
) as widget.Widget;
|
||||
settings.wmTitle = "{icon=fa-cog}";
|
||||
|
||||
// make sure icon for settings comes first in the widget menu
|
||||
config.widgets.sort((a, b) => {
|
||||
if (a.wmType === "settings") return -1;
|
||||
if (b.wmType === "settings") return 1;
|
||||
return 0;
|
||||
});
|
||||
|
||||
config.configVersion = 17;
|
||||
}
|
||||
|
||||
|
||||
@@ -129,10 +129,7 @@ export default defineComponent({
|
||||
const wm = inject<WidgetManager>("wm")!;
|
||||
|
||||
const widgets = computed(() => {
|
||||
return [
|
||||
wm.widgets.value.find((widget) => widget.wmType === "settings")!,
|
||||
...wm.widgets.value.filter((widget) => widget.wmType !== "settings"),
|
||||
]
|
||||
return wm.widgets.value
|
||||
.filter(
|
||||
(widget) =>
|
||||
!widget.wmFlags.includes("menu::skip") &&
|
||||
|
||||
Reference in New Issue
Block a user