bugfix
This commit is contained in:
@@ -109,6 +109,7 @@ class Core():
|
|||||||
# /_____/\____/\___/ /____/\___/\__/\__/_/_/ /_/\__, /____/
|
# /_____/\____/\___/ /____/\___/\__/\__/_/_/ /_/\__, /____/
|
||||||
# /____/
|
# /____/
|
||||||
def loadDocSettings(self):
|
def loadDocSettings(self):
|
||||||
|
print('loadDocSettings')
|
||||||
self.docsettings = json.loads(open(os.path.join(self.cwd,'.config/docsettings.json')).read())
|
self.docsettings = json.loads(open(os.path.join(self.cwd,'.config/docsettings.json')).read())
|
||||||
|
|
||||||
def recordDocSettings(self,docsettings):
|
def recordDocSettings(self,docsettings):
|
||||||
@@ -214,6 +215,7 @@ class Core():
|
|||||||
self.changeCWD(cwd)
|
self.changeCWD(cwd)
|
||||||
self.loadDocSettings()
|
self.loadDocSettings()
|
||||||
self.summary = json.loads(open(os.path.join(cwd,'.config/summary.json')).read())
|
self.summary = json.loads(open(os.path.join(cwd,'.config/summary.json')).read())
|
||||||
|
print('summary', summary)
|
||||||
# TODO: try python-pygit2 arch package
|
# TODO: try python-pygit2 arch package
|
||||||
# self.repository = git.Repo.init(cwd)
|
# self.repository = git.Repo.init(cwd)
|
||||||
# TODO: set git config user.name & user.email
|
# TODO: set git config user.name & user.email
|
||||||
@@ -239,6 +241,7 @@ class Core():
|
|||||||
# \___/_/ /_/\__,_/_/ /_/\__, /\___/\____/ |__/|__/_____/
|
# \___/_/ /_/\__,_/_/ /_/\__, /\___/\____/ |__/|__/_____/
|
||||||
# /____/
|
# /____/
|
||||||
def changeCWD(self, cwd):
|
def changeCWD(self, cwd):
|
||||||
|
print('changeCWD :: cwd', cwd)
|
||||||
if not cwd == self.cwd:
|
if not cwd == self.cwd:
|
||||||
self.cwd = cwd
|
self.cwd = cwd
|
||||||
self.server.reload()
|
self.server.reload()
|
||||||
@@ -248,7 +251,7 @@ class Core():
|
|||||||
if not self.tempcwd:
|
if not self.tempcwd:
|
||||||
self._mw.setWindowTitle("Libriis – "+self.cwd)
|
self._mw.setWindowTitle("Libriis – "+self.cwd)
|
||||||
head, tail = os.path.split(self.cwd)
|
head, tail = os.path.split(self.cwd)
|
||||||
print('tail', projectname)
|
print('changeCWD :: tail', tail)
|
||||||
self.projectname = tail
|
self.projectname = tail
|
||||||
self._mw.designstack.refresh()
|
self._mw.designstack.refresh()
|
||||||
self._mw.contentstack.refresh()
|
self._mw.contentstack.refresh()
|
||||||
|
|||||||
@@ -165,7 +165,7 @@ class MainWindow(QMainWindow):
|
|||||||
else:
|
else:
|
||||||
print("folder doesn't exists")
|
print("folder doesn't exists")
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print('Exception', e)
|
print('openprojectdialogue :: !!Exception!! :', e)
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def newprojectdialogue(self):
|
def newprojectdialogue(self):
|
||||||
@@ -180,6 +180,9 @@ class MainWindow(QMainWindow):
|
|||||||
# TODO: no file type
|
# TODO: no file type
|
||||||
try:
|
try:
|
||||||
head, tail = os.path.split(projectname)
|
head, tail = os.path.split(projectname)
|
||||||
|
print('newprojectdialogue :: projectname', projectname)
|
||||||
|
print("newprojectdialogue :: head",head)
|
||||||
|
print("newprojectdialogue :: tail", tail)
|
||||||
self.core.dialog_path = head
|
self.core.dialog_path = head
|
||||||
if not os.path.isdir(projectname):
|
if not os.path.isdir(projectname):
|
||||||
self.core.initnewproject(projectname)
|
self.core.initnewproject(projectname)
|
||||||
@@ -187,7 +190,7 @@ class MainWindow(QMainWindow):
|
|||||||
print("folder already exists")
|
print("folder already exists")
|
||||||
# TODO: check if is libriis folder
|
# TODO: check if is libriis folder
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print('Exception', e)
|
print('newprojectdialogue :: !!Exception!!', e)
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def saveprojectdialogue(self, quit=False):
|
def saveprojectdialogue(self, quit=False):
|
||||||
|
|||||||
Reference in New Issue
Block a user