Skip to content

Commit

Permalink
remove counter when using oriFilename
Browse files Browse the repository at this point in the history
  • Loading branch information
Ripwords committed Sep 15, 2022
1 parent d610cbd commit 980b7cf
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "starnet-gui",
"version": "1.1.0",
"version": "1.1.1",
"scripts": {
"dev": "tauri dev",
"build": "tauri build"
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "starnet-gui"
version = "1.1.0"
version = "1.1.1"
description = "A GUI for Starnet++"
authors = ["Ripwords"]
license = ""
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"package": {
"productName": "starnetGUI",
"version": "1.1.0"
"version": "1.1.1"
},
"build": {
"distDir": "../dist",
Expand Down
4 changes: 3 additions & 1 deletion src/components/Starnet.vue
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,10 @@ const starnet = async (
// Set output path
if (store.originalFilename) {
store.outputFilename = `${inputFilename.value}_starless`
outputPath = `${outputPath}/${store.outputFilename}.tiff`
} else {
counter > 0 ? outputPath = `${outputPath}/${store.outputFilename}_${counter}.tiff` : outputPath = `${outputPath}/${store.outputFilename}.tiff`
}
counter > 0 ? outputPath = `${outputPath}/${store.outputFilename}_${counter}.tiff` : outputPath = `${outputPath}/${store.outputFilename}.tiff`
// Construct Command
const cwd = os == "win32" ? `${store.starnetPath}\\` : `${store.starnetPath}/`
Expand Down

0 comments on commit 980b7cf

Please sign in to comment.