@@ -28,7 +28,10 @@ const REMEMBER_RECENT_KEY = 'remember-recent-files';
28
28
const SEARCH_THRESHOLD = 0.45 ;
29
29
const SidebarPlacement = Object . freeze ( { TOP : 0 , BOTTOM : 1 , LEFT : 2 , RIGHT : 3 } ) ;
30
30
31
- /*This graph shows the classes in which other classes are instantiated.
31
+ /* This graph shows the classes in which other classes are instantiated and how they are
32
+ * acessed. e.g. to call the update() method in categoriesView from contextMenu class use:
33
+ * this.appThis.display.categoriesView.update()
34
+
32
35
┌── class AppsView ───────┬── class AppButton
33
36
│ └── class Subheading
34
37
│
@@ -438,7 +441,9 @@ class CinnamenuApplet extends TextIconApplet {
438
441
openOnCategory = 'places' ;
439
442
}
440
443
441
- this . display . updateMenuSize ( ) ;
444
+ if ( ! this . resizer . _size_restricted ) {
445
+ this . display . updateMenuSize ( ) ;
446
+ }
442
447
this . setActiveCategory ( openOnCategory ) ;
443
448
444
449
//Show panel when auto hide is on.
@@ -1056,8 +1061,7 @@ class CinnamenuApplet extends TextIconApplet {
1056
1061
try {
1057
1062
ans = eval ?. ( `"use strict"; ${ exp } ` ) ;
1058
1063
} catch ( e ) {
1059
- const r = / [ \( \) \+ = / \* \. ; , ] /
1060
- const probablyMath = r . test ( exp ) ;
1064
+ const probablyMath = / [ \( \) \+ = / \* ] / . test ( exp ) ;
1061
1065
if ( probablyMath ) {
1062
1066
calculatorResult = _ ( "Calculator: " ) + e . message ;
1063
1067
}
@@ -1170,6 +1174,7 @@ class CinnamenuApplet extends TextIconApplet {
1170
1174
if ( FILE_SEARCH_DEBUG ) {
1171
1175
log ( "searching: " + folder ) ;
1172
1176
}
1177
+
1173
1178
dir . enumerate_children_async ( 'standard::name,standard::type,standard::is-symlink' ,
1174
1179
Gio . FileQueryInfoFlags . NONE , GLib . PRIORITY_DEFAULT , null , ( source , result ) => {
1175
1180
try {
@@ -1240,7 +1245,7 @@ class CinnamenuApplet extends TextIconApplet {
1240
1245
} //end if
1241
1246
1242
1247
if ( FILE_SEARCH_DEBUG ) {
1243
- log ( "todo: " + foldersToDo . length + " done: " + foldersSearched + " time: " + ( Date . now ( ) - timer ) + " : total " + ( Date . now ( ) - total_timer ) ) ;
1248
+ log ( "todo: " + foldersToDo . length + " done: " + foldersSearched + " time: " + ( Date . now ( ) - timer ) + " : total " + ( Date . now ( ) - total_timer ) ) ;
1244
1249
}
1245
1250
//update display of results at intervals or when search completed
1246
1251
if ( foldersToDo . length === 0 || Date . now ( ) - lastUpdateTime > updateInterval ) {
0 commit comments