mirror of
https://github.com/clangen/musikcube.git
synced 2025-01-30 06:32:36 +00:00
Removed nonsensical NotApplicable
state from
ILibrary::ConnectionState.
This commit is contained in:
parent
a498ef93ad
commit
583acbc866
@ -59,7 +59,6 @@ namespace musik { namespace core {
|
||||
};
|
||||
|
||||
enum class ConnectionState: int {
|
||||
NotApplicable = -1,
|
||||
Disconnected = 0,
|
||||
Connected = 1,
|
||||
Connecting = 2,
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user