Skip to content

Commit

Permalink
#143 ドライブ情報が正しく表示されるようになった
Browse files Browse the repository at this point in the history
  • Loading branch information
yamahubuki committed Jul 10, 2020
1 parent 498196b commit cf752cd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions tabs/NetworkResourceList.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,6 @@ def GetTabName(self):

def GetRootObject(self):
"""ドライブ詳細情報表示で用いる"""
#TODO:IPアドレス入れる
return browsableObjects.NetworkResource(self.listObject.rootDirectory[2:],self.listObject.rootDirectory,None)
obj=browsableObjects.NetworkResource()
obj.Initialize(self.listObject.rootDirectory[2:],self.listObject.rootDirectory,"")
return obj
2 changes: 1 addition & 1 deletion views/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -856,7 +856,7 @@ def ShowDetail(self,elem):
if elem.free>=0:
dic[_("総容量")]=misc.ConvertBytesTo(elem.total, misc.UNIT_AUTO, True)
dic[_("種類")]=elem.typeString
if type(elem)==browsableObjects.NetworkResource:
if type(elem)==browsableObjects.NetworkResource and elem.address!="":
dic[_("IPアドレス")]=elem.address
d=views.objectDetail.Dialog()
d.Initialize(dic)
Expand Down

0 comments on commit cf752cd

Please sign in to comment.