mirror of
https://github.com/clangen/musikcube.git
synced 2024-11-19 20:13:36 +00:00
Allow version display in settings screen as well.
This commit is contained in:
parent
dc262c345e
commit
6722ebd2ed
@ -37,6 +37,7 @@
|
||||
#include <cursespp/App.h>
|
||||
#include <cursespp/Colors.h>
|
||||
#include <cursespp/DialogOverlay.h>
|
||||
#include <cursespp/ToastOverlay.h>
|
||||
#include <cursespp/InputOverlay.h>
|
||||
#include <cursespp/Screen.h>
|
||||
#include <cursespp/SingleLineEntry.h>
|
||||
@ -47,6 +48,7 @@
|
||||
#include <core/audio/Outputs.h>
|
||||
#include <core/support/Messages.h>
|
||||
|
||||
#include <app/version.h>
|
||||
#include <app/util/Hotkeys.h>
|
||||
#include <app/util/Messages.h>
|
||||
#include <app/util/PreferenceKeys.h>
|
||||
@ -718,6 +720,10 @@ bool SettingsLayout::KeyPress(const std::string& key) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
if (key == "^_" || key == "M-v") { /* ctrl+/ */
|
||||
ToastOverlay::Show(u8fmt(_TSTR("console_version"), VERSION), -1);
|
||||
return true;
|
||||
}
|
||||
|
||||
return LayoutBase::KeyPress(key);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user