From 60ec0f2e10947612dcf2d8f686ea593497412765 Mon Sep 17 00:00:00 2001 From: defnax Date: Tue, 18 Mar 2025 20:02:54 +0100 Subject: [PATCH] Added missed wire defines --- retroshare-gui/src/gui/MainWindow.cpp | 7 +++++++ retroshare-gui/src/gui/MainWindow.h | 6 ++++++ 2 files changed, 13 insertions(+) diff --git a/retroshare-gui/src/gui/MainWindow.cpp b/retroshare-gui/src/gui/MainWindow.cpp index 9bf98cfe3..33c44ecdf 100644 --- a/retroshare-gui/src/gui/MainWindow.cpp +++ b/retroshare-gui/src/gui/MainWindow.cpp @@ -1115,6 +1115,11 @@ void SetForegroundWindowInternal(HWND hWnd) if (page == _instance->messagesDialog) { return Messages; } +#ifdef RS_USE_WIRE + if (page == _instance->wireDialog) { + return Wire; + } +#endif #if 0 if (page == _instance->channelFeed) { return Channels; @@ -1162,8 +1167,10 @@ void SetForegroundWindowInternal(HWND hWnd) return _instance->postedDialog; case Home: return _instance->homePage; +#ifdef RS_USE_WIRE case Wire: return _instance->wireDialog; +#endif } return NULL; diff --git a/retroshare-gui/src/gui/MainWindow.h b/retroshare-gui/src/gui/MainWindow.h index 04c7c7e73..7ba95a712 100644 --- a/retroshare-gui/src/gui/MainWindow.h +++ b/retroshare-gui/src/gui/MainWindow.h @@ -67,7 +67,9 @@ class BandwidthGraph; class MainPage; class NewsFeed; class UserNotify; +#ifdef RS_USE_WIRE class WireDialog; +#endif #ifdef MESSENGER_WINDOW class MessengerWindow; @@ -105,7 +107,9 @@ public: People = 12, /** People page. */ Options = 13, /** People page. */ Home = 14, /** Home page. */ +#ifdef RS_USE_WIRE Wire = 15 /** Wire page. */ +#endif }; @@ -165,7 +169,9 @@ public: GxsChannelDialog *gxschannelDialog ; GxsForumsDialog *gxsforumDialog ; PostedDialog *postedDialog; +#ifdef RS_USE_WIRE WireDialog *wireDialog; +#endif // ForumsDialog *forumsDialog; // ChannelFeed *channelFeed;