Skip to content

Commit c411c01

Browse files
committed
feat: change doubleClickToRun to doubleClickTimeout
1 parent 6721b8e commit c411c01

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/services/taskfile.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ class TaskfileService {
296296
const currentTime = Date.now();
297297
const doubleClicked = this.previousSelection !== undefined && this.previousSelectionTimestamp !== undefined
298298
&& this.previousSelection === task.name
299-
&& (currentTime - this.previousSelectionTimestamp) < settings.doubleClickToRun;
299+
&& (currentTime - this.previousSelectionTimestamp) < settings.doubleClickTimeout;
300300
if (doubleClicked) {
301301
this.previousSelection = undefined;
302302
this.previousSelectionTimestamp = undefined;

src/utils/settings.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class Settings {
77
public path!: string;
88
public outputTo!: OutputTo;
99
public checkForUpdates!: boolean;
10-
public doubleClickToRun!: number;
10+
public doubleClickTimeout!: number;
1111
public tree!: TreeSettings;
1212
public terminal!: TerminalSettings;
1313

@@ -31,7 +31,7 @@ class Settings {
3131
this.path = config.get("path") ?? "task";
3232
this.outputTo = config.get("outputTo") ?? OutputTo.output;
3333
this.checkForUpdates = config.get("checkForUpdates") ?? true;
34-
this.doubleClickToRun = config.get("doubleClickToRun") ?? 500;
34+
this.doubleClickTimeout = config.get("doubleClickTimeout") ?? 500;
3535
this.tree = new TreeSettings();
3636
this.terminal = new TerminalSettings();
3737
}

0 commit comments

Comments
 (0)