mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-13 03:52:45 +02:00
Update users.js to persist isMinimized value
This commit is contained in:
parent
1e6c2e737a
commit
5ae1af0d62
1 changed files with 6 additions and 0 deletions
|
@ -286,6 +286,8 @@ var usersWindow = (function () {
|
|||
MENU_ITEM = "Users Online",
|
||||
MENU_ITEM_AFTER = "Chat...",
|
||||
|
||||
SETTING_USERS_WINDOW_MINIMIZED = "UsersWindow.Minimized",
|
||||
|
||||
isVisible = true,
|
||||
isMinimized = false,
|
||||
|
||||
|
@ -869,9 +871,13 @@ var usersWindow = (function () {
|
|||
|
||||
pollUsers();
|
||||
|
||||
// Set minimized at end - setup code does not handle `minimized == false` correctly
|
||||
setMinimized(Settings.getValue(SETTING_USERS_WINDOW_MINIMIZED, false));
|
||||
}
|
||||
|
||||
function tearDown() {
|
||||
Settings.setValue(SETTING_USERS_WINDOW_MINIMIZED, isMinimized);
|
||||
|
||||
Menu.removeMenuItem(MENU_NAME, MENU_ITEM);
|
||||
|
||||
Script.clearTimeout(usersTimer);
|
||||
|
|
Loading…
Reference in a new issue