mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 13:12:37 -05:00
[Bug Fix] quickscreen clashed with WPS Hotkey browser
chris_s noted: When you set the WPS hotkey as a QuickScreen item and shuffle through the options, it eventually gets to the "Open Plugin" option and will show the File Browser, clashing with the Viewports of the QuickScreen Change-Id: I3addbbbac5842f89c000c155484d7cb934dc500e
This commit is contained in:
parent
99839960a2
commit
31759c9e53
1 changed files with 6 additions and 2 deletions
|
|
@ -60,6 +60,7 @@
|
|||
#endif
|
||||
#ifdef HAVE_HOTKEY
|
||||
#include "onplay.h"
|
||||
#include "misc.h" /* current activity */
|
||||
#endif
|
||||
|
||||
#include "voice_thread.h"
|
||||
|
|
@ -697,8 +698,11 @@ static void tsc_set_default(void* setting, void* defaultval)
|
|||
#ifdef HAVE_HOTKEY
|
||||
static void hotkey_callback(int var)
|
||||
{
|
||||
if (get_hotkey_lang_id(var) == LANG_OPEN_PLUGIN)
|
||||
open_plugin_browse(ID2P(LANG_HOTKEY_WPS));
|
||||
if (get_current_activity() != ACTIVITY_QUICKSCREEN)
|
||||
{
|
||||
if (get_hotkey_lang_id(var) == LANG_OPEN_PLUGIN)
|
||||
open_plugin_browse(ID2P(LANG_HOTKEY_WPS));
|
||||
}
|
||||
}
|
||||
static const char* hotkey_formatter(char* buffer, size_t buffer_size, int value,
|
||||
const char* unit)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue