Skip to content
Snippets Groups Projects
Commit 59fbcaeb authored by echicken's avatar echicken
Browse files

Create the enable/disable menu item whether or not the user

already has an avatar.  Show/hide the enable/disable menu
item as needed.
parent 54d632bf
No related branches found
No related tags found
No related merge requests found
......@@ -575,6 +575,7 @@ function MainMenu(parent_frame) {
}
frames.user_avatar.invalidate();
}
if (state.ed_item instanceof TreeItem) state.ed_item.show();
}
}
......@@ -693,12 +694,11 @@ function MainMenu(parent_frame) {
state.ae.open();
}
);
if (state.user_avatar !== null) {
state.ed_item = state.tree.addItem(
tree_strings[state.user_avatar.disabled ? 'enable' : 'disable'],
tree_strings[state.user_avatar !== null && state.user_avatar.disabled ? 'enable' : 'disable'],
enable_disable
);
}
if (state.user_avatar == null) state.ed_item.hide();
state.tree.open();
state.timer.addEvent(2000, true, test_user_file);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment