On Wed, 18 Dec 2024 20:52:59 GMT, Michael Strauß <mstra...@openjdk.org> wrote:

>> The `reducedData` preference instructs applications to minimize internet 
>> traffic, as users might be on a metered network or a limited data plan.
>> 
>> This corresponds to the following OS settings:
>> 
>> Windows: Settings -> Network and Internet -> Ethernet/WiFi -> Metered 
>> connection
>> macOS: Settings -> Network -> Ethernet/WiFi -> Network Settings -> Low data 
>> mode
>> Ubuntu: Settings -> Network -> Wired/WiFi -> Metered connection
>> 
>> Change notifications work consistently on Windows and macOS. On my Ubuntu 24 
>> system, the GIO `network-changed` signal is not sent when I only toggle the 
>> "metered connection" flag in network settings (and there's no signal 
>> specifically for low-data mode). The new value is only picked up when the 
>> connection changes by coming offline or going online.
>
> Michael Strauß has updated the pull request incrementally with two additional 
> commits since the last revision:
> 
>  - typo
>  - store the app delegate reference in MacApplication

It seems that there's no reliable way to retreive the `GlassApplication` 
instance outside of the `_runLoop()` method where it is created. I've decided 
to split the method into `_initDelegate()` and `_runLoop()`, and store the app 
delegate reference in the `MacApplication` class on the Java side. Then the 
reference can be passed down into the native toolkit for methods that require 
it (like `_getPlatformPreferences()`).

-------------

PR Comment: https://git.openjdk.org/jfx/pull/1656#issuecomment-2552248753

Reply via email to