Skip to content

Commit

Permalink
Change Main Window Default Size
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor-IX committed Oct 31, 2024
1 parent a469476 commit 281205f
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions source/windows/main_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,9 @@ class BlenderLauncher(BaseWindow):

def __init__(self, app: QApplication, version: Version, offline: bool = False):
super().__init__(app=app, version=version)
self.resize(640, 480)
self.resize(800, 700)
self.setMinimumSize(QSize(640, 480))
self.setMaximumWidth(1024)
self.setMaximumWidth(1250)
widget = QWidget(self)
self.CentralLayout = QVBoxLayout(widget)
self.CentralLayout.setContentsMargins(1, 1, 1, 1)
Expand Down Expand Up @@ -208,8 +208,6 @@ def __init__(self, app: QApplication, version: Version, offline: bool = False):
def __dont_show_resources_warning_again(self):
set_dont_show_resource_warning(True)



def prompt_library_folder(self):
library_folder = get_cwd().as_posix()
new_library_folder = FileDialogWindow().get_directory(self, "Select Library Folder", library_folder)
Expand Down Expand Up @@ -371,9 +369,7 @@ def draw(self, polish=False):
info_text="Nothing to show yet",
extended_selection=True,
)
self.LibraryBFAListWidget = self.LibraryToolBox.add_page_widget(
self.LibraryBFAPageWidget, "Bforartists"
)
self.LibraryBFAListWidget = self.LibraryToolBox.add_page_widget(self.LibraryBFAPageWidget, "Bforartists")

self.DownloadsStablePageWidget = BasePageWidget(
parent=self,
Expand Down Expand Up @@ -405,11 +401,9 @@ def draw(self, polish=False):
parent=self,
page_name="DownloadsBFAListWidget",
time_label="Upload Time",
info_text="No new builds available"
)
self.DownloadsBFAListWidget = self.DownloadsToolBox.add_page_widget(
self.DownloadsBFAPageWidget, "Bforartists"
info_text="No new builds available",
)
self.DownloadsBFAListWidget = self.DownloadsToolBox.add_page_widget(self.DownloadsBFAPageWidget, "Bforartists")

self.UserFavoritesListWidget = BasePageWidget(
parent=self, page_name="UserFavoritesListWidget", time_label="Commit Time", info_text="Nothing to show yet"
Expand Down Expand Up @@ -834,7 +828,7 @@ def start_scraper(self, scrape_stable=None, scrape_automated=None, scrape_bfa=No
for page in self.DownloadsToolBox.pages:
if page is not self.DownloadsStablePageWidget:
page.set_info_label_text(msg)

if scrape_bfa:
self.DownloadsBFAPageWidget.set_info_label_text("Checking for new builds")
else:
Expand Down

0 comments on commit 281205f

Please sign in to comment.