Removed nonsensical NotApplicable state from

ILibrary::ConnectionState.
This commit is contained in:
casey langen 2020-10-31 00:29:36 -07:00
parent a498ef93ad
commit 583acbc866
3 changed files with 2 additions and 4 deletions

View File

@ -59,7 +59,6 @@ namespace musik { namespace core {
};
enum class ConnectionState: int {
NotApplicable = -1,
Disconnected = 0,
Connected = 1,
Connecting = 2,

View File

@ -77,7 +77,7 @@ namespace musik { namespace core { namespace library {
MessageQueue& GetMessageQueue() override { return *messageQueue; }
IResourceLocator& GetResourceLocator() override;
bool IsConfigured() override;
ConnectionState GetConnectionState() const override { return ConnectionState::NotApplicable; }
ConnectionState GetConnectionState() const override { return ConnectionState::Connected; }
Type GetType() const override { return Type::Local; }
void Close() override;

View File

@ -257,8 +257,7 @@ void MainLayout::ProcessMessage(musik::core::runtime::IMessage &message) {
bool MainLayout::IsLibraryConnected() {
using State = ILibrary::ConnectionState;
auto state = library->GetConnectionState();
return state == State::Connected || state == State::NotApplicable;
return library->GetConnectionState() == State::Connected;
}
void MainLayout::SetInitialLayout() {