Skip to content

Commit

Permalink
hide popup message
Browse files Browse the repository at this point in the history
  • Loading branch information
Newdea committed Jun 22, 2024
1 parent 1b41257 commit c79d0a2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/Events/touchEvent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export class TouchOnMobile {
}
setTimeout(() => {
console.debug("time up");
if (this.isLongClick(0)) {
if (this.originTouches.length > 0 && this.isLongClick(0)) {
evt.preventDefault();
this.showcb();
this.handleCancel(evt);
Expand Down
16 changes: 8 additions & 8 deletions src/dataStore/repetitionItem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,14 +122,14 @@ export class RepetitionItem {
newitvl,
);
}
const dt = new Date(this.nextReview).toISOString();
debug("review result after:", [
this.nextReview,
dt,
(this.nextReview - Date.now()) / DateUtils.DAYS_TO_MILLIS,
result.nextReview / DateUtils.DAYS_TO_MILLIS,
newitvl,
]);
// const dt = new Date(this.nextReview).toISOString();
// debug("review result after:", [
// this.nextReview,
// dt,
// (this.nextReview - Date.now()) / DateUtils.DAYS_TO_MILLIS,
// result.nextReview / DateUtils.DAYS_TO_MILLIS,
// newitvl,
// ]);
}

/**
Expand Down
4 changes: 3 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,9 @@ export default class SRPlugin extends Plugin {

this.updateAndSortDueNotes();

new Notice(t("RESPONSE_RECEIVED"));
if(!this.data.settings.reviewResponseFloatBar){
new Notice(t("RESPONSE_RECEIVED"));
}

if (this.data.settings.autoNextNote) {
if (!this.lastSelectedReviewDeck) {
Expand Down

0 comments on commit c79d0a2

Please sign in to comment.