always send offset even while not paired

This commit is contained in:
Mauricio 2020-08-04 09:37:20 -04:00
parent d78b3ae235
commit 2792f4b5af

View File

@ -380,6 +380,8 @@ class AOCharMovie(QtGui.QLabel):
@QtCore.pyqtSlot()
def pillow_frame_change(self):
if not self.pillow_frames: return
if len(self.pillow_frames)-1 == self.pillow_frame:
if self.play_once:
self.preanim_timer.start(int(self.pillow_frames[self.pillow_frame][1] * self.pillow_speed))
@ -1389,12 +1391,8 @@ class gui(QtGui.QWidget):
if "cccc_ic_support" in self.features:
msg += self.showname+"#" # custom showname
if self.paircheckbox.isChecked():
msg += str(self.pairdropdown.currentIndex())+"#" #pair charID
msg += str(self.pairoffset.value())+"#" #self offset
else:
msg += "-1#" #pair charID
msg += "0#" #self offset
msg += (str(self.pairdropdown.currentIndex()) if self.paircheckbox.isChecked() else "-1")+"#" # pair charID
msg += str(self.pairoffset.value())+"#" # send this anyway; AO 2.8
msg += str(int(self.nointerruptbtn.isChecked()))+"#" # NoInterrupt(TM)
msg += "%"