blob: fd8f438cc01b187494faf2bc22a1f0a87b657ebd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
From 1d554cb2c29e57bfd58b9aed7643dcb60fbf8659 Mon Sep 17 00:00:00 2001
From: Eli MacKenzie <argonel@gmail.com>
Date: Sun, 3 Mar 2024 17:33:42 -0500
Subject: [PATCH] Delay tray setup until mainwindow state restored
Otherwise the the KSNI appears to lose track of the main window.
BUG: 482316
---
src/mainwindow.cpp | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index c1a029b5a..6faf7d90c 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -571,13 +571,13 @@ MainWindow::MainWindow() : KXmlGuiWindow(nullptr)
new KonviBookmarkHandler(menu, this);
actionCollection()->addAction(QStringLiteral("bookmarks") , action);
- // decide whether to show the tray icon or not
- updateTrayIcon();
-
createGUI();
setAutoSaveSettings();
+ // decide whether to show the tray icon or not
+ updateTrayIcon();
+
// Apply menubar show/hide pref
m_showMenuBarAction->setChecked(Preferences::self()->showMenuBar());
toggleMenubar(true);
--
GitLab
|