Skip to content

Commit

Permalink
Remove lang folder
Browse files Browse the repository at this point in the history
  • Loading branch information
yishn committed Apr 12, 2020
1 parent 76e8514 commit decf2ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
7 changes: 1 addition & 6 deletions src/components/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,15 @@ import * as gametree from '../modules/gametree.js'
import * as gtplogger from '../modules/gtplogger.js'
import * as helper from '../modules/helper.js'

const process = require('process')

const setting = remote.require('./setting')
const t = i18n.context('App')

const leftSidebarMinWidth = setting.get('view.sidebar_minwidth')
const sidebarMinWidth = setting.get('view.leftsidebar_minwidth')

fixPath()

const portableDir = process.env.PORTABLE_EXECUTABLE_DIR
if (portableDir) {
process.chdir(portableDir)
}
if (portableDir) process.chdir(portableDir)

class App extends Component {
constructor(props) {
Expand Down
4 changes: 2 additions & 2 deletions src/setting.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ const path = require('path')
const {app, BrowserWindow} = require('electron')

const portableDir = process.env.PORTABLE_EXECUTABLE_DIR

for (let dir of [
(exports.userDataDirectory = portableDir
? path.join(portableDir, 'Sabaki')
: app.getPath('userData')),
(exports.themesDirectory = path.join(exports.userDataDirectory, 'themes')),
(exports.langDirectory = path.join(exports.userDataDirectory, 'lang'))
(exports.themesDirectory = path.join(exports.userDataDirectory, 'themes'))
]) {
try {
fs.mkdirSync(dir)
Expand Down

0 comments on commit decf2ad

Please sign in to comment.