Skip to content

Commit

Permalink
自動アップデートの設定を環境設定に追加 close #25
Browse files Browse the repository at this point in the history
  • Loading branch information
Hiroki Fujii committed Nov 23, 2020
1 parent bdeab69 commit bca0f4b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ winpaths
pyinstaller
pyperclip
https://github.com/actlaboratory/named-pipe/archive/v1.0.1.zip
https://github.com/actlaboratory/proxyutil/archive/0.1.1.zip
https://github.com/actlaboratory/proxyutil/archive/0.2.0.zip
https://github.com/actlaboratory/history/archive/v1.0.3.zip
https://github.com/actlaboratory/soundPlayer/archive/0.2.2.zip
https://github.com/actlaboratory/diff_archiver/archive/v1.0.1.zip
5 changes: 5 additions & 0 deletions views/setting_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ def InstallControls(self):

# ネットワーク
netCreator = ViewCreator.ViewCreator(self.viewMode, tabCtrl, None, wx.VERTICAL, label=_("ネットワーク"))
self.updateCheck = netCreator.checkbox(_("起動時に更新を確認"))
if globalVars.app.config.getboolean("general", "update", True):
self.updateCheck.SetValue(True)
else: self.updateCheck.SetValue(False)
self.manualProxy = netCreator.checkbox(_("手動でプロキシ設定を行う"), self.onCheckBox)
if globalVars.app.config.getboolean("network", "manual_proxy", False):
self.manualProxy.SetValue(True)
Expand Down Expand Up @@ -114,6 +118,7 @@ def onSaveButton(self, evt):
globalVars.app.config["volume"]["default"] = str(int(self.volumeSlider.GetValue()))
globalVars.app.config["player"]["outputDevice"] = self.getKey(self.deviceDic, self.startupDeviceCombo.GetStringSelection())
globalVars.app.config["player"]["startupPlaylist"] = self.startupList.GetValue()
globalVars.app.config["general"]["update"] = self.updateCheck.IsChecked()
globalVars.app.config["network"]["manual_proxy"] = self.manualProxy.IsChecked()
globalVars.app.config["network"]["proxy_server"] = self.proxyServer.GetValue()
globalVars.app.config["network"]["proxy_port"] = self.proxyPort.GetValue()
Expand Down

0 comments on commit bca0f4b

Please sign in to comment.