mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2025-01-01 10:04:12 +08:00
fix
This commit is contained in:
parent
e6fd54e233
commit
00b0385401
@ -171,9 +171,9 @@ class voiceselect(LDialog):
|
|||||||
self.setWindowTitle("选择声音")
|
self.setWindowTitle("选择声音")
|
||||||
self.setWindowFlags(
|
self.setWindowFlags(
|
||||||
self.windowFlags()
|
self.windowFlags()
|
||||||
& ~Qt.WindowContextHelpButtonHint
|
& ~Qt.WindowType.WindowContextHelpButtonHint
|
||||||
& ~Qt.WindowType.WindowCloseButtonHint
|
& ~Qt.WindowType.WindowCloseButtonHint
|
||||||
| Qt.WindowStaysOnTopHint
|
| Qt.WindowType.WindowStaysOnTopHint
|
||||||
)
|
)
|
||||||
_layout = LFormLayout(self)
|
_layout = LFormLayout(self)
|
||||||
|
|
||||||
|
@ -849,6 +849,8 @@ class TranslatorWindow(resizableframeless):
|
|||||||
# icon.addPixmap(QPixmap('./files/luna.png'), QIcon.Normal, QIcon.On)
|
# icon.addPixmap(QPixmap('./files/luna.png'), QIcon.Normal, QIcon.On)
|
||||||
self.setWindowIcon(icon)
|
self.setWindowIcon(icon)
|
||||||
self.firstshow = True
|
self.firstshow = True
|
||||||
|
if globalconfig['keepontop']:
|
||||||
|
self.setWindowFlag(Qt.WindowType.WindowStaysOnTopHint)
|
||||||
self.setAttribute(Qt.WidgetAttribute.WA_TranslucentBackground)
|
self.setAttribute(Qt.WidgetAttribute.WA_TranslucentBackground)
|
||||||
self.setAttribute(Qt.WidgetAttribute.WA_ShowWithoutActivating, True)
|
self.setAttribute(Qt.WidgetAttribute.WA_ShowWithoutActivating, True)
|
||||||
self.setWindowTitle("LunaTranslator")
|
self.setWindowTitle("LunaTranslator")
|
||||||
|
@ -769,9 +769,9 @@ class Prompt_dialog(LDialog):
|
|||||||
super().__init__(parent)
|
super().__init__(parent)
|
||||||
self.setWindowFlags(
|
self.setWindowFlags(
|
||||||
self.windowFlags()
|
self.windowFlags()
|
||||||
& ~Qt.WindowContextHelpButtonHint
|
& ~Qt.WindowType.WindowContextHelpButtonHint
|
||||||
& ~Qt.WindowType.WindowCloseButtonHint
|
& ~Qt.WindowType.WindowCloseButtonHint
|
||||||
| Qt.WindowStaysOnTopHint
|
| Qt.WindowType.WindowStaysOnTopHint
|
||||||
)
|
)
|
||||||
self.setWindowTitle(title)
|
self.setWindowTitle(title)
|
||||||
self.setWindowIcon(qtawesome.icon("fa-question"))
|
self.setWindowIcon(qtawesome.icon("fa-question"))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user