mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 20:19:22 +03:00
Cleanup constants
This commit is contained in:
parent
87e214aef7
commit
0a95e2c6dc
11 changed files with 40 additions and 104 deletions
|
|
@ -336,18 +336,12 @@ class MessageListMailBoxUserView extends AbstractViewNext {
|
|||
if (this.newMoveToFolder() && this.mobileCheckedStateShow()) {
|
||||
if (vm && event && event.preventDefault) {
|
||||
event.preventDefault();
|
||||
if (event.stopPropagation) {
|
||||
event.stopPropagation();
|
||||
}
|
||||
event.stopPropagation();
|
||||
}
|
||||
|
||||
if (moveAction()) {
|
||||
AppStore.focusedState(Focused.MessageList);
|
||||
moveAction(false);
|
||||
} else {
|
||||
AppStore.focusedState(Focused.FolderList);
|
||||
moveAction(true);
|
||||
}
|
||||
let b = moveAction();
|
||||
AppStore.focusedState(b ? Focused.MessageList : Focused.FolderList);
|
||||
moveAction(!b);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -378,10 +372,7 @@ class MessageListMailBoxUserView extends AbstractViewNext {
|
|||
|
||||
clearTimeout(this.iGoToUpUpOrDownDownTimeout);
|
||||
this.iGoToUpUpOrDownDownTimeout = setTimeout(() => {
|
||||
let prev = null,
|
||||
next = null,
|
||||
temp = null,
|
||||
current = null;
|
||||
let prev, next, temp, current;
|
||||
|
||||
this.messageListPagenator().find(item => {
|
||||
if (item) {
|
||||
|
|
@ -420,15 +411,9 @@ class MessageListMailBoxUserView extends AbstractViewNext {
|
|||
}
|
||||
|
||||
useAutoSelect() {
|
||||
if (this.messageListDisableAutoSelect()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (/is:unseen/.test(this.mainMessageListSearch())) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return Layout.NoPreview !== SettingsStore.layout();
|
||||
return !this.messageListDisableAutoSelect()
|
||||
&& !/is:unseen/.test(this.mainMessageListSearch())
|
||||
&& Layout.NoPreview !== SettingsStore.layout();
|
||||
}
|
||||
|
||||
searchEnterAction() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue