diff --git a/desktop/app/src/Client.tsx b/desktop/app/src/Client.tsx index 4fa7c8097..49adeab8a 100644 --- a/desktop/app/src/Client.tsx +++ b/desktop/app/src/Client.tsx @@ -40,6 +40,7 @@ import {flipperMessagesClientPlugin} from './utils/self-inspection/plugins/Flipp import {getFlipperLibImplementation} from './utils/flipperLibImplementation'; import {freeze} from 'immer'; import GK from './fb-stubs/GK'; +import {message} from 'antd'; type Plugins = Array; @@ -601,8 +602,14 @@ export default class Client extends EventEmitter { const mark = this.getPerformanceMark(metadata); performance.mark(mark); - if (!this.connected) { + if (!this.connected.get()) { + message.warn({ + content: 'Not connected', + key: 'appnotconnectedwarning', + duration: 0.5, + }); reject(new Error('Not connected to client')); + return; } if (!fromPlugin || this.isAcceptingMessagesFromPlugin(plugin)) { this.connection!.requestResponse({ @@ -714,7 +721,7 @@ export default class Client extends EventEmitter { deinitPlugin(pluginId: string) { this.activePlugins.delete(pluginId); this.sandyPluginStates.get(pluginId)?.disconnect(); - if (this.connected) { + if (this.connected.get()) { this.rawSend('deinit', {plugin: pluginId}); } } diff --git a/desktop/themes/typography.less b/desktop/themes/typography.less index c6b770e91..80cbf2193 100644 --- a/desktop/themes/typography.less +++ b/desktop/themes/typography.less @@ -82,7 +82,7 @@ .ant-notification-notice-message { color: @background-default; } -.ant-notification-notice { +.ant-notification-notice, .ant-message-notice-content { background: @text-color-primary; color: @background-default; }