Skip to content

Commit f2fb57c

Browse files
committed
kram-profile - add new icon to this and kramv, fix reload file
1 parent 8be4239 commit f2fb57c

24 files changed

+22
-13
lines changed

Diff for: kram-profile/kram-profile/Assets.xcassets/AppIcon.appiconset/Contents.json

+9
Original file line numberDiff line numberDiff line change
@@ -6,46 +6,55 @@
66
"size" : "16x16"
77
},
88
{
9+
"filename" : "Icon-32 1.png",
910
"idiom" : "mac",
1011
"scale" : "2x",
1112
"size" : "16x16"
1213
},
1314
{
15+
"filename" : "Icon-32.png",
1416
"idiom" : "mac",
1517
"scale" : "1x",
1618
"size" : "32x32"
1719
},
1820
{
21+
"filename" : "Icon-64.png",
1922
"idiom" : "mac",
2023
"scale" : "2x",
2124
"size" : "32x32"
2225
},
2326
{
27+
"filename" : "Icon-128.png",
2428
"idiom" : "mac",
2529
"scale" : "1x",
2630
"size" : "128x128"
2731
},
2832
{
33+
"filename" : "Icon-256 1.png",
2934
"idiom" : "mac",
3035
"scale" : "2x",
3136
"size" : "128x128"
3237
},
3338
{
39+
"filename" : "Icon-256.png",
3440
"idiom" : "mac",
3541
"scale" : "1x",
3642
"size" : "256x256"
3743
},
3844
{
45+
"filename" : "Icon-512 1.png",
3946
"idiom" : "mac",
4047
"scale" : "2x",
4148
"size" : "256x256"
4249
},
4350
{
51+
"filename" : "Icon-512.png",
4452
"idiom" : "mac",
4553
"scale" : "1x",
4654
"size" : "512x512"
4755
},
4856
{
57+
"filename" : "Icon-1024.png",
4958
"idiom" : "mac",
5059
"scale" : "2x",
5160
"size" : "512x512"
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading

Diff for: kram-profile/kram-profile/kram_profileApp.swift

+9
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,11 @@ struct File: Identifiable, Hashable, Equatable, Comparable
113113
public static func < (lhs: File, rhs: File) -> Bool {
114114
return lhs.id < rhs.id
115115
}
116+
117+
// call this when the file is loaded
118+
public mutating func setLoadStamp() {
119+
loadStamp = modStamp
120+
}
116121
public func isReloadNeeded() -> Bool {
117122
return modStamp != loadStamp
118123
}
@@ -870,6 +875,10 @@ struct kram_profileApp: App {
870875
var str = loadFileJS(sel)
871876
if str != nil {
872877
runJavascript(webView, str!)
878+
879+
var file = lookupFile(url: URL(string: sel)!)
880+
file.setLoadStamp()
881+
updateFileCache(file: file)
873882
}
874883

875884
// now based on the type, set a reasonable range of time

Diff for: kramv/Assets.xcassets/AppIcon.appiconset/Contents.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"size" : "16x16"
77
},
88
{
9-
"filename" : "Icon-33.png",
9+
"filename" : "Icon-32 1.png",
1010
"idiom" : "mac",
1111
"scale" : "2x",
1212
"size" : "16x16"
@@ -30,7 +30,7 @@
3030
"size" : "128x128"
3131
},
3232
{
33-
"filename" : "Icon-257.png",
33+
"filename" : "Icon-256 1.png",
3434
"idiom" : "mac",
3535
"scale" : "2x",
3636
"size" : "128x128"
@@ -42,13 +42,13 @@
4242
"size" : "256x256"
4343
},
4444
{
45-
"filename" : "Icon-512.png",
45+
"filename" : "Icon-512 1.png",
4646
"idiom" : "mac",
4747
"scale" : "2x",
4848
"size" : "256x256"
4949
},
5050
{
51-
"filename" : "Icon-513.png",
51+
"filename" : "Icon-512.png",
5252
"idiom" : "mac",
5353
"scale" : "1x",
5454
"size" : "512x512"
330 KB
Loading
11.7 KB
Loading
36.6 KB
Loading
36.5 KB
Loading

Diff for: kramv/Assets.xcassets/AppIcon.appiconset/Icon-257.png

-3
This file was deleted.
1.46 KB
Loading

Diff for: kramv/Assets.xcassets/AppIcon.appiconset/Icon-32.png

1.34 KB
Loading

Diff for: kramv/Assets.xcassets/AppIcon.appiconset/Icon-33.png

-3
This file was deleted.
115 KB
Loading
115 KB
Loading

Diff for: kramv/Assets.xcassets/AppIcon.appiconset/Icon-513.png

-3
This file was deleted.

Diff for: kramv/Assets.xcassets/AppIcon.appiconset/Icon-64.png

3.83 KB
Loading

0 commit comments

Comments
 (0)