Skip to content
This repository was archived by the owner on Aug 28, 2020. It is now read-only.

Commit d0ad191

Browse files
committed
setup project browser
1 parent c0374a4 commit d0ad191

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

pugdebug/pugdebug.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
from pugdebug.gui.document import PugdebugDocument
2121
from pugdebug.models.documents import PugdebugDocuments
2222
from pugdebug.models.file_browser import PugdebugFileBrowser
23+
from pugdebug.models.projects import PugdebugProjects
2324
from pugdebug.models.settings import get_setting
2425

2526

@@ -56,6 +57,8 @@ def __init__(self):
5657

5758
self.setup_file_browser()
5859

60+
self.setup_projects_browser()
61+
5962
self.connect_signals()
6063

6164
def setup_file_browser(self):
@@ -73,6 +76,12 @@ def setup_file_browser(self):
7376
self.file_browser.setRootIndex(model.start_index)
7477
self.file_browser.hide_columns()
7578

79+
def setup_projects_browser(self):
80+
model = PugdebugProjects(self)
81+
82+
projects_browser = self.main_window.get_projects_browser()
83+
projects_browser.setModel(model)
84+
7685
def connect_signals(self):
7786
"""Connect all signals to their slots
7887

0 commit comments

Comments
 (0)