mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
use most used cmds setting
This commit is contained in:
parent
67097864fa
commit
f053139454
1 changed files with 10 additions and 2 deletions
|
|
@ -124,7 +124,11 @@ namespace Flow.Launcher.Plugin.Shell
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
return ret;
|
return ret;
|
||||||
}).Where(o => o != null).Take(4);
|
}).Where(o => o != null);
|
||||||
|
|
||||||
|
if (_settings.ShowOnlyMostUsedCMDs)
|
||||||
|
return history.Take(_settings.ShowOnlyMostUsedCMDsNumber).ToList();
|
||||||
|
|
||||||
return history.ToList();
|
return history.ToList();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -159,7 +163,11 @@ namespace Flow.Launcher.Plugin.Shell
|
||||||
Execute(Process.Start, PrepareProcessStartInfo(m.Key));
|
Execute(Process.Start, PrepareProcessStartInfo(m.Key));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}).Take(5);
|
});
|
||||||
|
|
||||||
|
if (_settings.ShowOnlyMostUsedCMDs)
|
||||||
|
return history.Take(_settings.ShowOnlyMostUsedCMDsNumber).ToList();
|
||||||
|
|
||||||
return history.ToList();
|
return history.ToList();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue