Skip to content

Commit

Permalink
Remove window positioning.
Browse files Browse the repository at this point in the history
Should be fixed in vanilla. See robotools/vanilla#196
  • Loading branch information
ryanbugden committed Oct 10, 2023
1 parent 368a8de commit b95287b
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 15 deletions.
4 changes: 2 additions & 2 deletions Slinky.roboFontExt/info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
<key>requiresVersionMinor</key>
<string>0</string>
<key>timeStamp</key>
<real>1696526952.8408298</real>
<real>1696979983.3178618</real>
<key>version</key>
<string>1.0</string>
<string>1.1</string>
</dict>
</plist>
6 changes: 0 additions & 6 deletions Slinky.roboFontExt/lib/slinky.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,17 +113,11 @@ def build(self):
self.performOptionsRadiosCallback(self.w.getItem("performOptionsRadios"))

def started(self):
# Position the window where it was last
_, _, ww, wh = self.w.getPosSize()
pos_size = getExtensionDefault(EXTENSION_KEY + ".windowPosSize", fallback=(200, 200, ww, wh))
self.w.setPosSize(pos_size)

self.w.open()
self.progressSpinner.show(False)

def destroy(self):
setExtensionDefault(EXTENSION_KEY, self.w.getItemValues())
setExtensionDefault(EXTENSION_KEY + ".windowPosSize", self.w.getPosSize())
# self.w.close()

def round_list(self, l):
Expand Down
2 changes: 1 addition & 1 deletion build.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# -----------------

name = "Slinky"
version = "1.0"
version = "1.1"
developer = "Ryan Bugden"
developer_url = "https://ryanbugden.com"
rf_version = "4.0"
Expand Down
6 changes: 0 additions & 6 deletions source/slinky.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,17 +113,11 @@ def build(self):
self.performOptionsRadiosCallback(self.w.getItem("performOptionsRadios"))

def started(self):
# Position the window where it was last
_, _, ww, wh = self.w.getPosSize()
pos_size = getExtensionDefault(EXTENSION_KEY + ".windowPosSize", fallback=(200, 200, ww, wh))
self.w.setPosSize(pos_size)

self.w.open()
self.progressSpinner.show(False)

def destroy(self):
setExtensionDefault(EXTENSION_KEY, self.w.getItemValues())
setExtensionDefault(EXTENSION_KEY + ".windowPosSize", self.w.getPosSize())
# self.w.close()

def round_list(self, l):
Expand Down

0 comments on commit b95287b

Please sign in to comment.