diff --git a/ai_diffusion/__init__.py b/ai_diffusion/__init__.py index e0fb1f0c07..5143b425f5 100644 --- a/ai_diffusion/__init__.py +++ b/ai_diffusion/__init__.py @@ -1,6 +1,6 @@ """Generative AI plugin for Krita using Stable Diffusion""" -__version__ = "1.0.0" +__version__ = "1.0.1" from . import util from .settings import Settings, Setting, settings, PerformancePreset, ServerBackend, ServerMode diff --git a/ai_diffusion/ui/settings.py b/ai_diffusion/ui/settings.py index bff9bddca2..263a97f79f 100644 --- a/ai_diffusion/ui/settings.py +++ b/ai_diffusion/ui/settings.py @@ -22,7 +22,7 @@ QWidget, ) from PyQt5.QtCore import Qt, QSize, QUrl, pyqtSignal -from PyQt5.QtGui import QDesktopServices +from PyQt5.QtGui import QDesktopServices, QGuiApplication from krita import Krita from .. import ( @@ -776,8 +776,9 @@ def __init__(self, main_window: QMainWindow, server: Server): self.setWindowTitle("Configure Image Diffusion") self.setMinimumSize(QSize(840, 480)) + screen_size = QGuiApplication.primaryScreen().availableSize() self.resize( - QSize(max(900, int(main_window.width() * 0.6)), int(main_window.height() * 0.8)) + QSize(max(900, int(screen_size.width() * 0.6)), int(screen_size.height() * 0.8)) ) layout = QHBoxLayout()