Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit d473927

Browse files
Merge pull request #1669 from livecode/bugfix-20077
[[ Bug 20077 ]] Default to 3-column tools palette
2 parents 5680dc9 + da8c10f commit d473927

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

Toolset/palettes/tools/revtools.livecodescript

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
script "revTools"
22
constant BLOCK_SIZE = 20
33

4+
constant kToolsColumnCountDefault = 3
45
on preOpenStack
56
dispatch "setAsBehavior" to revIDEFrameBehavior() with the long id of me
67

78
set the title of me to "Tools"
89

910
# Preferences
10-
if revIDEGetPreference("revTools_columns") is not a number then revIDESetPreference "revTools_columns", 2
11+
if revIDEGetPreference("revTools_columns") is not a number then revIDESetPreference "revTools_columns", kToolsColumnCountDefault
1112
addFrameItem "revTools_columns", "header", "preference", "View Columns", "enum","2,3,4", "framePreferenceSelected", the long id of me
1213
addFrameItem "add_widget","header", "action", "Find More Widgets", "plus", "plus","findMoreWidgets", the long id of me
1314

notes/bugfix-20077.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Default to 3-column tools palette

0 commit comments

Comments
 (0)