mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 697299 - Disable preferences before Gecko is loaded (ui thread fix) [r=dougt]
This commit is contained in:
parent
a77c3b5dec
commit
0576c53df1
@ -758,7 +758,12 @@ abstract public class GeckoApp
|
||||
GeckoPreferences.refresh(jsonPrefs);
|
||||
} else if (event.equals("Gecko:Ready")) {
|
||||
sIsGeckoReady = true;
|
||||
sMenu.findItem(R.id.preferences).setEnabled(true);
|
||||
mMainHandler.post(new Runnable() {
|
||||
public void run() {
|
||||
if (sMenu != null)
|
||||
sMenu.findItem(R.id.preferences).setEnabled(true);
|
||||
}
|
||||
});
|
||||
}
|
||||
} catch (Exception e) {
|
||||
Log.i(LOG_NAME, "handleMessage throws " + e + " for message: " + event);
|
||||
|
Loading…
Reference in New Issue
Block a user