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