Added just charge by default patch
[webos-internals:djcin7s-modifications.git] / notifications / just-charge-by-default.patch
1 Name: "Just Charge" By Default
2 Version: 1.2.1-1
3 Author: Jason Robitaille
4 Description: On plugging in your device, it'll automatically go into "Just Charge" with notification at bottom if you want to change to a different mode  (MIT license)
5
6 --- .orig/usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js
7 +++ /usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js
8 @@ -2007,7 +2007,7 @@
9                         if (this.updateAvailable) 
10                                 this.createUSBDashboard();
11                         else 
12 -                               this.showStorageModeAlert();
13 +                               this.createUSBDashboard(true);
14                 }
15         }
16      else {
17 @@ -2139,7 +2139,7 @@
18                                         if (this.updateAvailable) 
19                                                 this.createUSBDashboard();
20                                         else 
21 -                                               this.showStorageModeAlert();
22 +                                               this.createUSBDashboard(true);
23                                 }                                                       
24                         }
25                 }.bind(this),