Skip to content

Commit

Permalink
#346 作成するショートカットの種類に応じて利用できない項目をビューでブロック
Browse files Browse the repository at this point in the history
  • Loading branch information
yamahubuki committed Aug 6, 2020
1 parent b2e70bd commit be57b70
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion views/makeShortcut.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,17 @@ def GetData(self):

#作成するショートカットタイプの変更
def typeChangeEvent(self,event):
if (event.GetInt()==self.TYPE_HARDLINK):
if event.GetInt()==self.TYPE_HARDLINK:
#ハードリンクに絶対・相対の選択はない
self.linkType.Disable()
else:
#ハードリンク以外であれば絶対・相対の選択がある
self.linkType.Enable()

#パラメータとディレクトリの指定はlnkだけ
if event.GetInt()==self.TYPE_LNK:
self.parameter.Enable()
self.directory.Enable()
else:
self.parameter.Disable()
self.directory.Disable()

0 comments on commit be57b70

Please sign in to comment.