actions: toggle screen lock: check if screen is lockable before asking for width
This commit is contained in:
@@ -48,6 +48,7 @@ struct Lastfm: Screen<NC::Scrollpad>, Tabbable
|
||||
virtual void enterPressed() OVERRIDE { }
|
||||
virtual void spacePressed() OVERRIDE { }
|
||||
|
||||
virtual bool isLockable() OVERRIDE { return false; }
|
||||
virtual bool isMergable() OVERRIDE { return true; }
|
||||
|
||||
template <typename ServiceT>
|
||||
@@ -69,9 +70,6 @@ struct Lastfm: Screen<NC::Scrollpad>, Tabbable
|
||||
m_title = ToWString(m_service->name());
|
||||
}
|
||||
|
||||
protected:
|
||||
virtual bool isLockable() OVERRIDE { return false; }
|
||||
|
||||
private:
|
||||
void getResult();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user