Skip to content

Commit 3603b48

Browse files
0.0.1-8
1 parent a729379 commit 3603b48

3 files changed

Lines changed: 49 additions & 37 deletions

File tree

lib/pages/home/sidebar.dart

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ class _SideBarState extends State<SideBar> {
155155
Column(
156156
crossAxisAlignment: CrossAxisAlignment.center,
157157
children: [
158-
Text("OpenConfigurator 0.0.1-7",
158+
Text("OpenConfigurator 0.0.1-8",
159159
style: TextStyle(fontSize: 10)),
160160
Text("OpenCore ${globals.OC_VERSION}", style: TextStyle(fontSize: 10)),
161161
],
@@ -250,7 +250,7 @@ class _SideBarState extends State<SideBar> {
250250
folderIconColor: Colors.teal,
251251
);
252252
if (path == null) return;
253-
newPath = path + "_OpenConf.plist";
253+
newPath = path + "/config.plist";
254254
}else {
255255
final path = globals.pConfig.path;
256256
for (int i=path.length-1; i>-1; i--) {
@@ -259,7 +259,9 @@ class _SideBarState extends State<SideBar> {
259259
break;
260260
}
261261
}
262-
if (newPath == null) newPath = path + "_OpenConf.plist";
262+
if (newPath == null) {
263+
newPath = path + "_OpenConf.plist";
264+
}
263265
}
264266
globals.pConfig.write(newPath);
265267
showDialog(context: context, builder: (BuildContext context) => CupertinoAlertDialog(

lib/pages/load_config_page.dart

Lines changed: 43 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -107,13 +107,23 @@ class _LoadConfigPageState extends State<LoadConfigPage> {
107107
mainAxisAlignment: MainAxisAlignment.center,
108108
crossAxisAlignment: CrossAxisAlignment.center,
109109
children: [
110+
SizedBox(height: 6),
110111
Text(
111112
"OpenConfigurator",
112113
style: TextStyle(
113114
fontSize: 21,
114115
letterSpacing: -0.5
115116
),
116117
),
118+
SizedBox(height: 3),
119+
Text(
120+
"Only for OC ${globals.OC_VERSION}",
121+
style: TextStyle(
122+
fontSize: 15.0,
123+
letterSpacing: -0.5,
124+
color: Colors.red,
125+
),
126+
),
117127
SizedBox(height: 20),
118128
ClipRRect(
119129
borderRadius: BorderRadius.circular(10),
@@ -146,39 +156,39 @@ class _LoadConfigPageState extends State<LoadConfigPage> {
146156
),
147157
),
148158
),
149-
SizedBox(height: 60),
150-
Container(
151-
padding: EdgeInsets.symmetric(horizontal: 5, vertical: 10),
152-
decoration: BoxDecoration(
153-
borderRadius: BorderRadius.circular(10),
154-
color: Colors.black.withOpacity(0.4),
155-
),
156-
child: Column(
157-
children: [
158-
Text(
159-
"How to get the path",
160-
style: TextStyle(fontSize: 14, fontWeight: FontWeight.bold),
161-
),
162-
SizedBox(height: 8),
163-
Text(
164-
"MacOS: Mark file in finder, press Cmd-Opt-C",
165-
style: TextStyle(fontSize: 12),
166-
),
167-
Text(
168-
"Windows: Mark file in explorer, click home and copy path",
169-
style: TextStyle(fontSize: 12),
170-
),
171-
Text(
172-
"Linux: Depends on Distro",
173-
style: TextStyle(fontSize: 12),
174-
),
175-
Text(
176-
"Android/iOS/iPadOS: Press Open",
177-
style: TextStyle(fontSize: 12),
178-
),
179-
],
180-
),
181-
),
159+
...(globals.isMobile
160+
? []
161+
: [
162+
SizedBox(height: 60),
163+
Container(
164+
padding: EdgeInsets.symmetric(horizontal: 5, vertical: 10),
165+
decoration: BoxDecoration(
166+
borderRadius: BorderRadius.circular(10),
167+
color: Colors.black.withOpacity(0.4),
168+
),
169+
child: Column(
170+
children: [
171+
Text(
172+
"How to get the path",
173+
style: TextStyle(fontSize: 14, fontWeight: FontWeight.bold),
174+
),
175+
SizedBox(height: 8),
176+
Text(
177+
"MacOS: Mark file in finder, press Cmd-Opt-C",
178+
style: TextStyle(fontSize: 12),
179+
),
180+
Text(
181+
"Windows: Mark file in explorer, click home and copy path",
182+
style: TextStyle(fontSize: 12),
183+
),
184+
Text(
185+
"Linux: Depends on Distro",
186+
style: TextStyle(fontSize: 12),
187+
),
188+
],
189+
),
190+
),
191+
]),
182192
SizedBox(height: 10),
183193
_getErrorWidget(),
184194
],

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
1515
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
1616
# Read more about iOS versioning at
1717
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
18-
version: 0.0.1+7
18+
version: 0.0.1+8
1919

2020
environment:
2121
sdk: ">=2.7.0 <3.0.0"

0 commit comments

Comments
 (0)