Trying to fix adding multiple files
This commit is contained in:
parent
e8b042df54
commit
c1711f231b
3 changed files with 6 additions and 4 deletions
|
@ -25,6 +25,7 @@ dirs = "5.0.0"
|
||||||
diesel = { version = "2.0.3", features = ["sqlite"] }
|
diesel = { version = "2.0.3", features = ["sqlite"] }
|
||||||
libsqlite3-sys = { version = ">=0.17.2, <0.26.0", features = ["bundled"] }
|
libsqlite3-sys = { version = ">=0.17.2, <0.26.0", features = ["bundled"] }
|
||||||
youtube_dl = "0.8.0"
|
youtube_dl = "0.8.0"
|
||||||
|
# sqlx = { version = "0.6.3", features = ["sqlite", "runtime-async-std"] }
|
||||||
# ffmpeg-next = "6.0.0"
|
# ffmpeg-next = "6.0.0"
|
||||||
|
|
||||||
# cxx-qt-build generates C++ code from the `#[cxx_qt::bridge]` module
|
# cxx-qt-build generates C++ code from the `#[cxx_qt::bridge]` module
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
cargo2nix.url = "github:cargo2nix/cargo2nix/release-0.11.0";
|
cargo2nix.url = "github:cargo2nix/cargo2nix/release-0.11.0";
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||||
flake-utils.url = "github:numtide/flake-utils";
|
flake-utils.url = "github:numtide/flake-utils";
|
||||||
|
# nixpkgs.follows = "cargo2nix/nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = inputs: with inputs;
|
outputs = inputs: with inputs;
|
||||||
|
@ -27,6 +28,8 @@
|
||||||
workspaceShell = rustPkgs.workspaceShell {
|
workspaceShell = rustPkgs.workspaceShell {
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
gcc
|
gcc
|
||||||
|
stdenv
|
||||||
|
bintools
|
||||||
gnumake
|
gnumake
|
||||||
gdb
|
gdb
|
||||||
qtcreator
|
qtcreator
|
||||||
|
|
|
@ -349,17 +349,14 @@ Item {
|
||||||
if (videoexts.includes(extension))
|
if (videoexts.includes(extension))
|
||||||
{
|
{
|
||||||
addVideo(file);
|
addVideo(file);
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
if (imgexts.includes(extension))
|
if (imgexts.includes(extension))
|
||||||
{
|
{
|
||||||
addImg(file);
|
addImg(file);
|
||||||
return
|
|
||||||
}
|
}
|
||||||
if (presexts.includes(extension))
|
if (presexts.includes(extension))
|
||||||
{
|
{
|
||||||
addPres(file);
|
addPres(file);
|
||||||
return
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -375,12 +372,13 @@ Item {
|
||||||
}
|
}
|
||||||
if (imgexts.includes(ext))
|
if (imgexts.includes(ext))
|
||||||
{
|
{
|
||||||
|
console.log(file);
|
||||||
addImg(file);
|
addImg(file);
|
||||||
|
console.log(file);
|
||||||
}
|
}
|
||||||
if (presexts.includes(ext))
|
if (presexts.includes(ext))
|
||||||
{
|
{
|
||||||
addPres(file);
|
addPres(file);
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue